Hi Ramos,
Thank you for using Syncfusion products.
We have analyzed your query and we don’t have the support for CurrentCellValidating in GridTemplateColumn. Because it is possible to extend the functionality of GridColumns with your own editor by using CellTemplate and EditTemplate of GridTemplateColumn and so unable to identify which UI Elements needs to be focused. You can use GridRowValidatingEvent and doing something what you need to do in GridCurrentCellvalidating Event as shown in the below code snippet,
datagrid.RowValidating += datagrid_RowValidating;
void datagrid_RowValidating(object sender, RowValidatingEventArgs args)
{
if(datagrid.CurrentColumn is GridTemplateColumn)
{
// you can do something here
}
}
|
By using CurrentCellActivated/CurrentCellEndEdit Event you can get the currentcell/previously edited cell of GridTemplateColumn and achieve your requirement.
datagrid.CurrentCellActivated += datagrid_CurrentCellActivated;
void datagrid_CurrentCellActivated(object sender, CurrentCellActivatedEventArgs args)
{
// you can get the current cell here
}
datagrid.CurrentCellEndEdit += datagrid_CurrentCellEndEdit;
void datagrid_CurrentCellEndEdit(object sender, CurrentCellEndEditEventArgs args)
{
//you can get the previously edited cell when you commit the value
} |
Please find the below UG Link to get detailed explanation about Rowvalidation and CellValidation,
UG Link: http://help.syncfusion.com/UG/winrt/default.htm#!Documents/validationthrougheve.htm
The below UG link provides the list of events when you edit or exist the current cell
UG Link: http://help.syncfusion.com/ug/wpf/default.htm#!documents/editing.htm
Please let us know if you have any queries.
Regards,
Jayapradha