Posted 15 June 2012 - 09:26 AM
Posted 15 June 2012 - 11:36 AM
I have tested this and OnAfterEdit is fired immediately when I click on one of the checkboxes in a CheckBoxColumn, without the need to first click on a different cell.
What options do you have on the grid and the columns? Can you post a small demo program that shows the problem?
Posted 15 June 2012 - 01:32 PM
The OnCloseUp event does not pass the ACol and ARow parameters like OnAfterEdit does, but you can use NextGrid1.SelectColumn and NextGrid1.SelectedRow to check which cell was edited.
Posted 21 June 2012 - 01:53 PM
procedure TForm23.NxComboBoxColumn1CloseUp(Sender: TObject);
if NextGrid1.SelectedColumn=4 then
If user click on 4th column (this is TNxComboBoxColumn with list of proxy types) and select some item after it start working NxComboBoxColumn1CloseUp but in ProxyTypeSelected I see old item value - not new!
Posted 21 June 2012 - 05:07 PM
Try calling NextGrid.ApplyEditing before retrieving the value from the column.
begin NextGrid1.ApplyEditing; NextGrid1.ShowMessage(NextGrid1.Cell[4,NextGrid1.SelectedRow].AsString); end;
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users