Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Calculating Width of DataGrid

Status
Not open for further replies.

DLLHell

Programmer
May 9, 2003
69
US
Are there any rules with calculating the width of a Datagrid? I am defining a DIV with the width style based on the varying length of the Datagrid. The DataGrid.Width property is never available (it stays at Zero all the time except when viewed in View/Source) so I define it by calculating the total Pixels in the largest row in the grid but that at times still truncates the grid within the DIV usually by less than 100 pixels when that happens.

Any ideas? Any ideas or suggestions would be appreciated. Thanks.
 
Very nice link - it helps a lot. Thanks very much, Brian!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top