erich.wanker Posted June 27, 2023 Share Posted June 27, 2023 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 Quote Link to comment Share on other sites More sharing options...
Sherzod Posted June 28, 2023 Share Posted June 28, 2023 Hello @erich.wanker Try this workaround: function viewready(sender, eOpts) { col = sender.getColumnManager().getColumns()[0]; if (col && col.xtype == 'checkcolumn' && !col.dataIndex) { col.dataIndex = -3; } } 1 Quote Link to comment Share on other sites More sharing options...
erich.wanker Posted June 28, 2023 Author Share Posted June 28, 2023 Thank you very much ! 1 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.