Gridview with template controls
-
i hav a pblm with gridview with template control. i hav the gridview with textbox as template control hw can i get the values in the textbox. i want it to savve im using asp.net2.0 using c#:confused::confused:
-
Stop spamming the forum and keep your advertisement with you.
Thanks and Regards, Chetan Ranpariya
-
i hav a pblm with gridview with template control. i hav the gridview with textbox as template control hw can i get the values in the textbox. i want it to savve im using asp.net2.0 using c#:confused::confused:
Hi, Get the gridviewrow from which you want to take the textbox value and use findControl method to find the textbox and when u get the textbox get its Text property. GridViewRow rw = gv.Rows[2]; TextBox txt = (TextBox)rw.FindControl("txtData"); string value = txt.Text; Here in above code I am getting value from the textbox which is there in the 3rd row of the gridview. I hope this code will help u.
Thanks and Regards, Chetan Ranpariya
-
Hey... Dont spam the site....Moderators please take notice
Mubashir Software Architect Storan Technologies Inc, USA Every job is a self portrait of the person who did it.
_mubashir wrote:
Dont spam the site....Moderators please take notice
In order to alert the admins please press the "spam" button on the relevant post.
Upcoming events: * Glasgow: SQL Server 2005 - XML and XML Query Plans, Mock Objects, SQL Server Reporting Services... Never write for other people. Write for yourself, because you have a passion for it. -- Marc Clifton My website