简体   繁体   中英

Keep row in edit mode after inserting in GridView

I have a Gridview and I have defined the respective itemtemplates and edittemplates for the rows and controls. I have different row events to bind, insert, update, delete the data from the grid. As per the requirement I am struggling to find a way to keep the new Row in edit state once it has been inserted in the grid. Presently there is an overhead of clicking the edit button after the row is inserted. How do I accomplish this?

I found a resolution. I could simply call the RowEdit Event explicitly by : gridView_RowEditing(sender, new GridViewEditEventArgs(gridView.Rows.Count-1));

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