Jump to content

TUniDBGrid and Multiselect


Roberto Nicchi

Recommended Posts

Hello,

i'm using a TuniDBgrid component to allow selection of multiple records.

Options = [dgEditing, dgTitles, dgIndicator, dgColumnResize, dgColLines, dgRowLines, dgRowSelect, dgCheckSelect, dgAlwaysShowSelection, dgConfirmDelete, dgMultiSelect, dgAutoRefreshRow]

My problem is that the record selection is possible only clicking in the checkbox only. I would like to select/unselect the record clicking in any column of the grid. Possible in some way ?

thanks

Link to comment
Share on other sites

7 minutes ago, Roberto Nicchi said:

My problem is that the record selection is possible only clicking in the checkbox only. I would like to select/unselect the record clicking in any column of the grid. Possible in some way ?

Hello,

"Use Ctrl/Shift to select multiple records (Ctrl-A to select all)"

\FMSoft\Framework\uniGUI\Demos\Desktop\GridMultiSelect

 

Link to comment
Share on other sites

15 minutes ago, Roberto Nicchi said:

The application will be used in a touch monitor. The user click (touch) the record and it should be selected.

thanks

Roberto

Hello, try to create procedure like Example

GridMultiSelect

to check checkbox when user click on DBGrid Row (Work on uniDBGridClick, uniDBGridDBlClick,OnCellClick)

 

var
selActControl : TControl;
begin
if Column <> nil then begin

     if not Column.ActionColumn.Enabled then
            //    procedure to check selected row from example

           //TUniDBGrid (TUniDBGridColumn (Column).Grid).;

end;

Link to comment
Share on other sites

2 hours ago, irigsoft said:

Hello, try to create procedure like Example

GridMultiSelect

to check checkbox when user click on DBGrid Row (Work on uniDBGridClick, uniDBGridDBlClick,OnCellClick)

 

var
selActControl : TControl;
begin
if Column <> nil then begin

     if not Column.ActionColumn.Enabled then
            //    procedure to check selected row from example

           //TUniDBGrid (TUniDBGridColumn (Column).Grid).;

end;

I can't understand how to change the selection of the current record by code. I i had this information it would be easy...

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...