Home › Forums › WinForms controls › Xceed Grid for WinForms › Grid Validation › Reply To: Grid Validation
Calling EndEdit on the CurrentRow should do the trick. For example, in your Save button:
if( ( ( DataRow )gridControl1.CurrentRow ).IsBeingEdited )
( ( DataRow )gridControl1.CurrentRow ).EndEdit();
Of course, you will need to check the type of the current row before casting to avoid exceptions. 😉
Imported from legacy forums. Posted by Jenny [Xceed] (had 463 views)