CurrentCellEndEdit event is not triggered when i click GridCheckBoxColumn
Here is my code
Note: I test it CurrentCellBeginEdit it's work fine but not working CurrentCellEndEdit
ResourceEntities db = new ResourceEntities();
public LicenceFrm()
{
InitializeComponent();
sfDataGrid2.DataSource = db.LIC_Controller.ToList();
this.sfDataGrid2.CurrentCellEndEdit += SfDataGrid2_CurrentCellEndEdit;
CurrentCellManager manager = new CurrentCellManager(sfDataGrid2);
(this.sfDataGrid2.Columns["Lic_State"] as GridCheckBoxColumn).AllowText = true;
}
private void SfDataGrid2_CurrentCellEndEdit(object sender, CurrentCellEndEditEventArgs e)
{
//int rowIndex = e.DataRow.RowIndex-1;
//int columnIndex = e.DataColumn.ColumnIndex;
// Get the mapping name
//var mappingName = this.sfDataGrid2.Columns[columnIndex].MappingName;
//// Get the resolved current record index
// // Get the current row record
// var record1 = this.sfDataGrid2.View.Records.GetItemAt(rowIndex);
// var b = record1.GetType().GetRuntimeProperty(mappingName).GetValue(record1).ToString();
autoLabel2.Text = "The editing is completed for the cell (" + e.DataRow.RowIndex + "," + e.DataColumn.ColumnIndex + ")"; //b.ToString()+" "+ mappingName;
}
SIGN IN To post a reply.
5 Replies
MA
Mohanram Anbukkarasu
Syncfusion Team
May 21, 2018 12:47 PM UTC
Hi,
Thanks for contacting Syncfusion support.
By default, CurrentCellEndEdit event will not hit for CheckBox column as CheckBox column is not editable.
Instead of using CurrentCellEndEdit for CheckBoxColumn you can make use of CellCheckBoxClick to achieve your requirement.
Regards,
Mohanram A
Hi,Thanks for contacting Syncfusion support.By default, CurrentCellEndEdit event will not hit for CheckBox column as CheckBox column is not editable.Instead of using CurrentCellEndEdit for CheckBoxColumn you can make use of CellCheckBoxClick to achieve your requirement.Regards,Mohanram A
Thanks a lot
I have one more question how can ı change Drag a column to group or click here to add new row text. they not at my language
MA
Mohanram Anbukkarasu
Syncfusion Team
May 22, 2018 12:18 PM UTC
Hi Eren,
Thanks for your update.
You can use the localization support in SfDataGrid to change the default text of GroupDropArea and AddNewRow.
It can be changed by editing the default text from the resx file.
Please refer the below localization UG link and sample from the given location.
Localization UG link - https://help.syncfusion.com/windowsforms/sfdatagrid/localization#editing-default-resource-file
Sample location - http://www.syncfusion.com/downloads/support/directtrac/general/ze/Localization649414759
You can also use the below code to change the default text of the GroupDropArea.
|
this.sfDataGrid1.GroupPanel.GroupDropAreaText = "Drag columns here"; |
Regards,
Mohanram A.
ER
Eren
May 22, 2018 08:36 PM UTC
Thanks you helped me so much.
Can you help this one too https://www.syncfusion.com/forums/137712/how-can-i-control-add-new-row-event-is-finished
MA
Mohanram Anbukkarasu
Syncfusion Team
May 23, 2018 07:20 AM UTC
Hi Eren,
Thanks for your update.
We have provided the solution for your add new row related query in the corresponding forum.
Please refer the forum link.
Regards,
Mohanram A.
SIGN IN To post a reply.
- 5 Replies
- 2 Participants
-
ER Eren
- May 20, 2018 09:38 AM UTC
- May 23, 2018 07:20 AM UTC