Explain the various CommandName properties used in Gridview to perform various operations like Delete,Update and so on.

 Posted by vishalneeraj-24503 on 11/22/2013 | Category: ASP.NET Interview questions | Views: 2155 | Points: 40
Answer:

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 | Alert Moderator 

Comments or Responses

Login to post response