Home Forums WinForms controls Xceed Grid for WinForms Forcing the datagrid to save edited data Reply To: Forcing the datagrid to save edited data

User (Old forums)
Post count: 23064

Thank you VERY much. Believe it or not, this is what I derived out of your C# example for VB:

If CType(gcPrimary.CurrentRow, Xceed.Grid.InsertionRow).IsBeingEdited Then
CType(gcPrimary.CurrentRow, Xceed.Grid.InsertionRow).EndEdit()
End If

But it works great. The only thing I had to do is check for an InvalidCastException for when the user tries to save with nothing in the row. I could probably test for it somehow, but This was the easy way to deal with it.

Imported from legacy forums. Posted by DimondWoof (had 494 views)