DBGrid Checkbox select

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #36686
    mierlp
    Participant

    Hi,

    I would be a welcome feature to have a CheckBoxSelect property

    like the SMDBGrid has….but then for AlphaControls.

    Regards Peter

    #54048
    Support
    Keymaster

    Hello

    What is purpose of this property? I haven't the SBDBGrid component and can't check it now.

    #54052
    mierlp
    Participant

    Hi,

    The purpose is you can select rows/records in combination

    with multiselect. So if you mark several rows then you

    can you put some action under a button for the selected rows.

    You can something like :

    Code:
    if SMDBGrid_Contact.SelectedRows.Count = 0 then begin
    Application.MessageBox('There are NO rows/records selected.', 'Info', MB_OK+MB_ICONASTERISK+MB_DEFBUTTON1+MB_APPLMODAL);
    end;
    if SMDBGrid_Contact.SelectedRows.Count > 0 then begin
    with SMDBGrid_Contact.DataSource.DataSet do begin
    for i := 0 to SMDBGrid_Contact.SelectedRows.Count-1 do begin
    GotoBookmark(Pointer(SMDBGrid_Contact.SelectedRows.Items));

    // Here you can excecute you're code)

    end;
    SMDBGrid_Contact.SelectedRows.clear;
    dmTable_Contact.refresh;
    end;
    end;

    SMDBGrid is a freeware component : http://www.scalabium.com/

    I would be a nice feature because dbgrids are often used within

    applications.

    #54109
    Support
    Keymaster

    Thank you. I can't promise implementing of this feature.

    Maybe later it will be added, when I will have more time for this task.

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.