Click here to Skip to main content
16,021,459 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Need to change the Row Span Size which is currently in '3' to '2' after checking a if Loop. Is It possible , if so can you Please help me with a sample code line.
i have being trying to move the tableLayoutPanel to a location that has to check the condition and change.
Location (695,697) to (3,697) or cell (2,2) to (0,2)
tableLayoutPanelLogos.Location = new Point(3, 697); tableLayoutPanelLogos.BringToFront();
doesn't works. any sugggestion..?
Posted
Updated 30-Jul-14 20:27pm
v2
Comments
ZurdoDev 30-Jul-14 7:25am    
In JS or C#? C#, just add a runat="server" on your row and then you can access it in codebehind.
Hari-CodeBlogger 30-Jul-14 9:35am    
only in c#. also i need to change a tableLayout Panel cell postioning from (2,2) to (0,2)
ZurdoDev 30-Jul-14 9:55am    
So, where are you stuck?
Hari-CodeBlogger 31-Jul-14 2:26am    
i have being trying to move the tableLayoutPanel to a location that has to check the condition and change.
Location (695,697) to (3,697) or cell (2,2) to (0,2)

tableLayoutPanelLogos.Location = new Point(3, 697); tableLayoutPanelLogos.BringToFront();

doesn't works. any sugggestion..?

1 solution

Row Span

this.tableLayoutPanel.Controls.Add(this.tablepanel, 0, 2);
(0,2) -> Row span

Adding Column in Table Panel dynamically

this.tableLayoutPanel.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 33F));

33F -> percentage of column size
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900