C# Tutorials and offshore development in India
    Tutorials   Resources   Forum   Reviews   Communities   Interview   Jobs   Projects   Training   Your Ad Here    
Silverlight Games | Mentor | Code Converter | Articles | Code Factory | Computer Jokes | Members | Peer Appraisal | IT Companies | Bookmarks | Polls | Revenue Sharing | Lobby | Gift Shop |


Prizes & Awards
My Profile



Active Members
TodayLast 7 Days more...






Forums » .NET » ASP.NET »

How to add new columns dynamically to the existing rows by using TBALE(HTML) or ASP:TABLE


Posted Date: 20 Oct 2008      Posted By: Rojakumar      Member Level: Silver     Points: 1   Responses: 2



Hi Griends,
Good day
any can provide me the following detilas

a) How to add new columns dynamically to the existing rows by using TBALE(HTML) or ASP:TABLE control

Thanks & Regards
rclgoriparthi





Responses

Author: satyavani.namburu    20 Oct 2008Member Level: BronzeRating: 3 out of 53 out of 53 out of 5     Points: 3

for(int i=0;i<Table.Rows.count;i++)
{
TableCell cell = new TableCell();
Table.Rows[i].Cells.Add(cell);
}



Author: ankur jain    20 Oct 2008Member Level: SilverRating: 3 out of 53 out of 53 out of 5     Points: 3

Hi try this,
Table t = new Table();
TableRow tr = new TableRow();
TableCell tc = new TableCell();
tc.Text = "hiiiiiiiii";
tr.Cells.Add(tc);
t.Rows.Add(tr);
t.BorderWidth = 4;
Page.Controls.Add(t);



Post Reply

 This thread is locked for new responses. Please post your comments and questions as a separate thread.
If required, refer to the URL of this page in your new post.


Next : Problem With DataGrid
Previous : how to get the values
Return to Discussion Forum
Post New Message
Category: ASP.NET

Related Messages



dotNet Slackers

About Us    Contact Us    Privacy Policy    Terms Of Use