AD
Administrator
Syncfusion Team
May 13, 2006 07:17 AM UTC
Hi Cheryl,
Colud you try this code to dock/anchor the GridTable in a Grid. Here is a code snippet.
private void Model_QueryColWidth(object sender, Syncfusion.Windows.Forms.Grid.GridRowColSizeEventArgs e)
{
e.Size = this.gridDataBoundGrid1.ClientSize.Width / (this.gridDataBoundGrid1.Model.ColCount + 1) ;
e.Handled = true;
this.gridDataBoundGrid1.Invalidate();
}
private void Model_QueryRowHeight(object sender, Syncfusion.Windows.Forms.Grid.GridRowColSizeEventArgs e)
{
e.Size = this.gridDataBoundGrid1.ClientSize.Height / (this.gridDataBoundGrid1.Model.RowCount + 1) ;
e.Handled = true;
this.gridDataBoundGrid1.Invalidate();
}
Here is a sample.
http://www.syncfusion.com/Support/user/uploads/TabcontrolAnchor_771fbc10.zip
Please let me know if this helps.
Thanks for your interest in Syncfusion Products.
Best Regards,
Haneef