donlego Posted March 4, 2019 Share Posted March 4, 2019 hello any body know how to know what state on unidbgrid with checkbox column if click on checkbox column, i want to get the state of checkbox , the condition/state of checkbox on click the checkbox box column unigui ver 1486 Link to comment Share on other sites More sharing options...
Sherzod Posted March 4, 2019 Share Posted March 4, 2019 Hello, OnCellClick ? procedure TMainForm.UniDBGrid1CellClick(Column: TUniDBGridColumn); begin if Column.FieldName = 'Shift' then ShowMessage(VarToStr(Column.Field.Value)); end; Link to comment Share on other sites More sharing options...
donlego Posted March 5, 2019 Author Share Posted March 5, 2019 hello sherzod i create test case for you please check then unchek the checkbox column what i want is if the checkbox is checked=true then uniedit value= uniedit value+unidbgrid row value on valnya value else uniedit value= uniedit value-unidbgrid row value on valnya value for now i get always 2 , just check the first row checked column unigui_check_box.rar Link to comment Share on other sites More sharing options...
donlego Posted March 8, 2019 Author Share Posted March 8, 2019 hello sherzod, any solutution for this ? Link to comment Share on other sites More sharing options...
Sherzod Posted March 8, 2019 Share Posted March 8, 2019 55 minutes ago, donlego said: any solutution for this ? Hello, I will check, maybe you need change a logic... Link to comment Share on other sites More sharing options...
donlego Posted March 8, 2019 Author Share Posted March 8, 2019 ok, i will wait for your solution thanks Link to comment Share on other sites More sharing options...
donlego Posted March 12, 2019 Author Share Posted March 12, 2019 Hello any solution for this Link to comment Share on other sites More sharing options...
Sherzod Posted March 12, 2019 Share Posted March 12, 2019 1 hour ago, donlego said: any solution for this Hello, Try this: UniDBGrid1 -> ClientEvents -> ExtEvents -> function cellclick: function cellclick(sender, td, cellIndex, record, tr, rowIndex, e, eOpts) { if (e==undefined) return false; } Link to comment Share on other sites More sharing options...
donlego Posted March 12, 2019 Author Share Posted March 12, 2019 hello sherzod on test case app it work , but on my real project your solution is not work, id ont know what missing, is there any other solution , to know if i click on the checkbox and return the state of checkbox is checked or unchecked ? Link to comment Share on other sites More sharing options...
Sherzod Posted March 12, 2019 Share Posted March 12, 2019 4 hours ago, donlego said: on test case app it work , but on my real project your solution is not work, id ont know what missing, Maybe we will use a TeamViewer for this? Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now