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 bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Datagrid oinside a DIV tag Question

Status
Not open for further replies.

MikeDamone

Programmer
Oct 21, 2003
106
US
I have a datagrid that is inside a div because I want use a certain prt of the screen vertically and the DIV allows for scrolling to see the rest of the data in the datagrid. My question is, how can I dunamically determine the width of the grid and then assign that with to the DIV so my vertical scrollbar appears right beside the datagrid rather then way put to the right? Any ideas? Thanks
 
You could make the div available server side by adding a WithEvents declaration for it and then (using Attributes.Add) add a width attribute for it based on the size of the datagrid.

----------------------------------------------------------------------

Need help finding an answer?

Try the search facilty ( or read FAQ222-2244 on how to get better results.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top