Resizing a DataGrid to a DIV

  • Thread starter Thread starter Wayne J
  • Start date Start date
W

Wayne J

I am using a DIV to simulate a scrolling DataGrid, however when I try to get
the width (Div1.Styles.Items("Width")) I get nothing.

Now I realise at the point the code is run, the DIV is not even in existence
other than just a variable name, but is there a way to get the width so I
can size the DG to just inside the horizontal boundary of the DIV?
 
Assuming you're creating the Div, you should know what size you made it. Or
am I missing something here?

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
http://www.takempis.com
Big Things are made up of
Lots of Little Things.
 
Wayne,

This should really be done on the client side. It can be trivial or rather
tricky depending on which browsers you need to support, so which one(s)...?

Nicole
 
Kevin Spencer said:
Assuming you're creating the Div, you should know what size you made it. Or
am I missing something here?

The DIV is set to a width of 100%, mainly because we will not have any way
of knowing whether the viewer's browser will be set at 800x600 or higher.

I can force the assumption that the browser will be set to a min of 800x600
and leave it at that, as this seems to be the most common course of action.
 
Back
Top