How to edit textbox's while click edit button in gridview?

Posted by Gperiyannan under C# on 3/7/2011 | Points: 10 | Views : 6970 | Status : [Member] | Replies : 6
i have upload some data's from textbox to SQL and bind those data's using Gridview. if i click a edit button in gridview,normally the grid has been edit the values,but i want to edit the corresponding data's in textbox. please help me to solve this?

Periyannan.G


Responses

Posted by: Gsolvers on: 3/7/2011 [Member] Starter | Points: 25

Up
0
Down
On select even of the grid please update the value in textbox.... and also on the change event of textbox update the DB and bind the grid again.

Best Regards,

VG
www.TeacherJi.com

Gperiyannan, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Karthikanbarasan on: 3/7/2011 [Member] [Moderator] [Microsoft_MVP] [MVP] Silver | Points: 25

Up
0
Down
Hi,

On the grid view edit click event, you can map the data to the text box instead of editing directly in the grid view... this way you will get the particular row data to the text box.

Thanks
Karthik
www.f5Debug.net

Gperiyannan, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Gsolvers on: 3/7/2011 [Member] Starter | Points: 25

Up
0
Down
Exactly Karthik! I too explained the same but in different wordings:)

Best Regards,

VG
www.TeacherJi.com

Gperiyannan, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Gperiyannan on: 3/7/2011 [Member] Starter | Points: 25

Up
0
Down
I need code for this friends...............please send me the code,i am beginner level only

Periyannan.G

Gperiyannan, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Gsolvers on: 3/7/2011 [Member] Starter | Points: 25

Up
0
Down
Please refer the below link

http://msdn.microsoft.com/en-us/library/ms972948.aspx

Best Regards,

VG
www.TeacherJi.com

Gperiyannan, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Karthikanbarasan on: 3/7/2011 [Member] [Moderator] [Microsoft_MVP] [MVP] Silver | Points: 25

Up
0
Down
Check this link

http://forums.asp.net/t/1182552.aspx

Thanks
Karthik
www.f5Debug.net

Gperiyannan, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response