Jump to content

UniDBGrid - onTitleClick is fired when i click the checkbox "select all"


erich.wanker

Recommended Posts

Hi,

if i click the checkbox to select ALL in uniDBGrid  (dgCheckSelect and dgMultiselect and dgTitleClick =true)

following happens:

1. every row will be select

2 following procedure will start 

procedure Tf_Monthly_Report.MydbgridTitleClick(Column: TUniDBGridColumn);
begin

    my_Fieldname_1 := Column.FieldName;

    if my_Direction_1 = true
    then
      my_Direction_1 := False
    else
      my_Direction_1 := true;

     start_sql;  // order by my_Fieldname_1  - my_Direction_1  represents asc / desc  
end;

3. the table will become a new sql statement

4. the selection is lost

 

how can i solve this?

 

 

ThanX 

Erich

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...