Hi,
I''m trying to vertically size a grid to match the height of it''s rows. Can someone please tell me why this isn''t working?
Thanks very much,
Cameron
private void SetupGrid()
{
this.grTP.RowCount = 5;
int GridHeight =0;
for (int i=0;i<=grTP.RowCount+1;i++)
{
GridHeight+=grTP.RowHeights[i];
}
grTP.Height = GridHeight;
}