Are you looking to get the number of columns? Or the number of
columnStyles... which is what you are getting. Concidering that no
columnStyles have been added, only columns, I would expect ColumnStyles.Count
to return 0.
-CA
> Hi all,
> I don't usually post possible bugs because I would assume that there are
[quoted text clipped - 19 lines]
> Thanks all,
> Tim.
Timothy V - 02 Mar 2006 04:14 GMT
Thanks for your response... Your explaination sounds pretty much on the
ball. I have changed my column adding code to:
int i = tablelayoutpanel.ColumnStyles.Add(new ColumnStyle(SizeType.Percent,
50.0F));
tlp.Controls.Add(c, i, 0);
This now works fine with ColumnStyles.Count, giving the correct answer.
HOWEVER, I can't seem to get ColumnStyles.RemoveAt() to work.
From what you said previously, and from my understanding now, it is removing
the ColumnStyle, not the Column. How do I remove a column?
Thanks in advance,
Tim.
> Are you looking to get the number of columns? Or the number of
> columnStyles... which is what you are getting. Concidering that no
[quoted text clipped - 32 lines]
>> Thanks all,
>> Tim.