On Dec 4, 5:15 pm, "David C" <dlch...@lifetimeinc.comwrote:
My brain is fried. How can I determine if the row is in edit mode when
processing the RowDataBound event? Thanks.
David
Try checking the EditIndex property on your GridView.
protected void GridView1_RowDataBound(object sender,
GridViewRowEventArgs e)
{
if (this.GridView1.EditIndex == -1)
{
//not in edit mode...
}
else
{
//in edit mode
}
}