CurrentCellBeginEdit not firing
Hi,
Using the latest version (26.1.35) of the sfDataGrid to show a List<ObjectType>.
I enabled editing on the grid and on 2 checkbox type columns with single click edit.
However, non of the CurrentCell related events fire when I click/change the checkbox.
I tried all of th events below, non are firing
private void grdReservations_CurrentCellValidated(object sender, Syncfusion.WinForms.DataGrid.Events.CurrentCellValidatedEventArgs e)
{
System.Diagnostics.Trace.Write("grdReservations_CurrentCellValidated");
}
private void grdReservations_CurrentCellEndEdit(object sender, Syncfusion.WinForms.DataGrid.Events.CurrentCellEndEditEventArgs e)
{
System.Diagnostics.Trace.Write("grdReservations_CurrentCellEndEdit");
}
private void grdReservations_RowValidated(object sender, Syncfusion.WinForms.DataGrid.Events.RowValidatedEventArgs e)
{
System.Diagnostics.Trace.Write("grdReservations_RowValidated");
}
private void grdReservations_CurrentCellBeginEdit(object sender, Syncfusion.WinForms.DataGrid.Events.CurrentCellBeginEditEventArgs e)
{
System.Diagnostics.Trace.Write("grdReservations_CurrentCellBeginEdit");
}
private void grdReservations_CurrentCellActivated(object sender, Syncfusion.WinForms.DataGrid.Events.CurrentCellActivatedEventArgs e)
{
System.Diagnostics.Trace.Write("grdReservations_CurrentCellActivated");
}
Attachment: SfDataGrid_CheckBoxColumn_337891fb.zip
Hi,
Found it a bit bizar that checkbox columns are non editable given that your documentation states otherwise
" Represents a column that used to display and edit boolean values and draw CheckBox in its cell."
How do you suppose to show/edit a boolean type column?
I was able to work around with the CellCheckBoxClick.
However still some issues to get the value of my checkbox column.
I tried getting the 'record' to fetch the status of my two checkbox columns with this code :
But the value of checkboxes is not up to date in the data of my record.
Regards,
Sven
- 3 Replies
- 2 Participants
-
SV Sven
- Jul 30, 2024 03:14 PM UTC
- Aug 1, 2024 01:51 PM UTC