Get a reference of HTML Table bound to a GridView
-
How can we get a reference of HTML Table bound to a GridView aconvert gridview as datasource. Like, if i want to add a new row to gridview at runtime, i can access its html table and add a new td to that. Plz help me guys... Thanks in advance Sheel Gohe
-
How can we get a reference of HTML Table bound to a GridView aconvert gridview as datasource. Like, if i want to add a new row to gridview at runtime, i can access its html table and add a new td to that. Plz help me guys... Thanks in advance Sheel Gohe
Append the ID attribute to the table. -------------------------------------------------------- My portfolio & development blog Q:What does the derived class in C# tell to it's parent? A:All your base are belong to us!
-
How can we get a reference of HTML Table bound to a GridView aconvert gridview as datasource. Like, if i want to add a new row to gridview at runtime, i can access its html table and add a new td to that. Plz help me guys... Thanks in advance Sheel Gohe
set to properties for the HTML table. set ID and runat="server". or if you are adding the the table at design time, just right click on the table and select "Run as server control" and set ID property in the properties window. or go to HTML view and add the following line to the HTML table tag. id="GiveSomeidhere" runat="server". let us say id="TableID" runat="server" now HtmlTable htmlTable = new HtmlTable(); htmlTable = this.FindControl("TableID"); now you can do your codin using this htmlTable variable. hope this will help you. cheers Ramesh.Kanjinghat