代码之家  ›  专栏  ›  技术社区  ›  Afshar Mohebi

Which GridView event to use when updating?

  •  0
  • Afshar Mohebi  · 技术社区  · 14 年前

    I have a GridView with ItemTemplate and EditTemplate. There is some text boxes in EditTemplate. I want to update records myself using EditTemplate controls. Which event of GridView I should use? If I use Telerik's RadGrid then what event is better?

    1 回复  |  直到 14 年前
        1
  •  0
  •   Roman    14 年前

    For GridView, probably the RowUpdating event which is fired when the user clicks whatever button has the Update command argument.

    For RadGrid, it looks like they also provide a UpdateCommand event you can subscribe to to save data by hand.