Bind data in rowdatabound inside gridview based on row type

1).  if (e.Row.RowType == DataControlRowType.DataRow && !e.Row.RowState.ToString().Contains("Edit"))
{
}

This is used for  Edit for Particular Row  inside gridview

2).  if (e.Row.RowType == DataControlRowType.DataRow && dgSmsTemplates.EditIndex == e.Row.RowIndex)
{
}
This is used for  Edit for Particular index (loading Control like editor) inside gridview

3).    if (e.Row.RowType == DataControlRowType.DataRow)
{
}
This is used for  Edit  inside gridview for perticular row (not binding values at runtime)

Comments

Popular posts from this blog

what is Event Cache table in sharepoint

CAML Query syntax and options in SharePoint

Change anchor link url in sharepoint calender