How do i merge cells in TableLayoutPanel ?

Beginner

Well-known member
Joined
Mar 12, 2008
Messages
114
Programming Experience
Beginner
How do i merge cells in TableLayoutPanel ? Where one label can take place of the two colums ?


2003416793276561923_rs.jpg
 
You will need to overwrite the paint method of the table and draw a rectange at the proper location, then populate with a string.

It's a lot of work, the easier metod is if it's a set amount of rows and columns, just put a panel over the two cells you want to merge in your form designer, and stick a label in it.
 
How to: Span Rows and Columns in a TableLayoutPanel Control

You have installed the MSDN help, right? If not you must. Help documentation is very helpful.

vinnie881, what are you on about?? I guess TableLayoutPanel control is not familiar to you since you are on a older Framework where this don't exist?
 
john, u are correct. I am not familiar with the table layout, but Since no one responded to this thread for a while, I thought I would attempt to try and help. In .net 2003, the closest thing I have to go off of was a datagrid, so that's what I used to base my opinion on. From my experience with this site, I appriciate when some tries to assist when no one else does, because it's atleast another possibilty to look into., and you're not sitting idle.
 
Back
Top