Mayur  Gujrathi

Mayur Gujrathi

  • 405
  • 3.9k
  • 1m

Gridview editing event

Jul 30 2011 2:57 AM
my gridview event not firing
i am doing like this
 
<asp:GridView CssClass="clsborder" runat="server" ID="grdDematChk"
  AutoGenerateColumns="False" DataKeyNames="isincd" Width="100%"
  BackColor="#7fb16c" BorderColor="#cccccc" BorderStyle="None" BorderWidth="1px"
  CellPadding="0" CellSpacing="0" Height="1px" AllowPaging="true"
  AllowSorting="true" PageSize="10"
  OnRowEditing="grdDematChk_RowEditing"
  OnRowCancelingEdit="grdDematChk_RowCancelingEdit"
 
  OnRowUpdating="grdDematChk_RowUpdating" OnRowDeleting="grdDematChk_RowDeleting"
  AutoGenerateDeleteButton="True" AutoGenerateEditButton="True" >

and in code behind
  Protected Sub grdDematChk_RowEditing(ByVal sender As Object, ByVal e As GridViewEditEventArgs)
  grdDematChk.EditIndex = e.NewEditIndex
  GetAddModeDataView()
  End Sub


Answers (5)