Home » U++ Library support » ArrayCtrl, HeaderCtrl & GridCtrl » GridCtrl: Setting column widths programmatically
|
|
|
Re: GridCtrl: Setting column widths programmatically [message #35436 is a reply to message #35435] |
Tue, 14 February 2012 07:33   |
|
Hi Lance!
I described solution for this problem many times (that only means that current behavior is not intuitive and cumbersome..). Your SetColumns method should look like this:
void SetColumns()
{
dword c=::Random();
c=5+c%4;
grid.Ready(false);
grid.Clear(true);
for(dword i=0; i<c; ++i)
{
grid.AddColumn(String().Cat()<<"Column "<<i, 50);
}
grid.Ready(true);
}
|
|
|
|
Goto Forum:
Current Time: Wed Apr 30 01:50:37 CEST 2025
Total time taken to generate the page: 0.00887 seconds
|