There are 5 most used CommandName properties used in Gridview to perform various operations:-
1). Update :- As the name implies, this commandname property is used for Updating any Gridview row.
2). Select :- As the name suggests, this property is used for Selection any gridview row.
3). Delete :- We can use this property for Deleting rows from Gridview.
4). Edit :- By using this event, we can Edit any row. After Editing, we can perform Update operation meaning Update CommandName will be used.
This Icon or Button will only be enabled after clicking on Edit icon/button.
5). Cancel :- We can Cancel any Gridview Rows which are being Edited. This Icon or Button will only be enabled after clicking on Edit icon.
Asked In: Many Interviews |