grid view edit index how to find

Posted by Jiturcm under Regular Expressions on 4/19/2011 | Points: 10 | Views : 4556 | Status : [Member] | Replies : 1
what is Gridview1.EditIndex = e.NewEditIndex; ?

jitendra kumar mahapatro


Responses

Posted by: Ndebata on: 4/19/2011 [Member] Starter | Points: 25

Up
0
Down
Hi Jitendra,

In the page onint register an event of GridView.
protected override void OnInit(EventArgs e)

{
base.OnInit(e);
GridView1.RowEditing += new GridViewEditEventHandler(GridView1_RowEditing);
}


Then you will find GridViewEditEventArgs e in method defination of GridView1_RowEditing which has a property named NewEditIndex


void Gridview1_RowEditing(object sender, GridViewEditEventArgs e)
{
Gridview1.EditIndex = e.NewEditIndex;
}


Thanks,
Debata

Jiturcm, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response