endr3am
endr3am

Reputation: 21

Execute cancel command after edit is pressed in gridview

I would like to automatically cancel the gridviews edit function by calling cancel immediatly:

protected virtual void GridView1_OnRowEditing(object sender, GridViewEditEventArgs e)
{
     //cancel gridviews edit
     //hide the visibility one one panel and show the visibility of another populated panel
}

How do I do this?

Upvotes: 0

Views: 191

Answers (1)

Stormenet
Stormenet

Reputation: 26468

Set the Cancel property of the GridViewEditEventArgs e to true as described on msdn.

Upvotes: 2

Related Questions