简体   繁体   中英

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?

msdn所述,将GridViewEditEventArgs eCancel属性设置为true

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM