Gridview rowupdating textbox
In here last "Template Field" is the column which will contain controls for modifying the row.
In "Item Template", it will contain a single button which will trigger Grid View EDIT command and in "Edi Item Template", it will contain three buttons which will trigger Grid View UPDATE, DELETE and CANCEL commands. In here Grid View Edit Event Args will give the row number I am editing by it's New Edit Index property.
First I will load values to a Data Set and Bind my Grid View's Data Source to that Data Set in Page Load event.
Please note that in here I will be writing only the necessary codes.
"Item Template" property is used to control the appearance of a data item and "Edit Item Template" property is used to control the appearance of a data item in Edit mode. So here what I have done is, User ID is the primary key. For all other columns there is a "Edi Item Template".
Instead of "Edit" button, three more buttons will come to the picture which will be "Update","Delete" and "Cancel".
I hope you all got the target well, let's start achieving it.