I’m adding rows in the following manner:
Table.RowCount = Table.RowCount ++;
Table.RowStyles.Add(new RowStyle(System.Windows.Forms.SizeType.AutoSize));
How can I add a Label to each cell in this newly created row?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Use the TableLayoutControlCollection.Add Method. There’s an overload that allows you to specify the row and column where the new Label will be added.
This snippet adds a row to a TLP and then adds a new Label to the first column of this new row: