Home Forums WinForms controls Xceed Grid for WinForms canceling in dataRowTemplate2_EndingEdit

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • User (Old forums)
    Member
    Post count: 23064
    #14004 |

    Sub dataRowTemplate2_EndingEdit(ByVal sender As Object, ByVal e As System.ComponentModel.CancelEventArgs) Handles dataRowTemplate2.EndingEdit

    when a datarow EndingEdit event is fired, what is the difference between canceling the edit with:

    CType(sender, Xceed.Grid.DataRow).CancelEdit()

    and canceling edit with:

    e.Canel = True

    Thanks,
    Tack

    Imported from legacy forums. Posted by t (had 1773 views)

    User (Old forums)
    Member
    Post count: 23064

    I think it’s good practice to use e.Cancel = True. That’s what it’s for. I think internally it calls CancelEdit, but I’m not sure.

    Imported from legacy forums. Posted by Tommy (had 2929 views)

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.