Saturday, March 24, 2012

Panel Scroll

Try putting <DIV>'s inside the datagrid template column definitions, and
sizing them. The problem with the datagrid is that it generates an HTML
table, with which the browser can pretty much do as it pleases.

"Marty" <anonymous@dotnet.itags.org.discussions.microsoft.com> wrote in message
news:D8323D07-7838-4D4A-98EB-02E6A4E92B7E@dotnet.itags.org.microsoft.com...
> I have a datagrid inside a panel. The panel width is set to 700px. I
also have the panel's overflow style property set to auto. While the
vertical scrollbar does appear when required, the datagrid always tries to
adjust its column sizes to fit inside the panel, despite these column widths
being set priogrammatically. How can I get the panel to use horizontal
scroll bars?Or you could set either (1) the gatagrid's overall width or (2) the
individual column widths in the datagrid's property builder

"Rick Spiewak" <rickspiewak@.mindspring.com> wrote in message
news:e%23MQ51tLEHA.1556@.TK2MSFTNGP10.phx.gbl...
> Try putting <DIV>'s inside the datagrid template column definitions, and
> sizing them. The problem with the datagrid is that it generates an HTML
> table, with which the browser can pretty much do as it pleases.
> "Marty" <anonymous@.discussions.microsoft.com> wrote in message
> news:D8323D07-7838-4D4A-98EB-02E6A4E92B7E@.microsoft.com...
> > I have a datagrid inside a panel. The panel width is set to 700px. I
> also have the panel's overflow style property set to auto. While the
> vertical scrollbar does appear when required, the datagrid always tries to
> adjust its column sizes to fit inside the panel, despite these column
widths
> being set priogrammatically. How can I get the panel to use horizontal
> scroll bars?

0 comments:

Post a Comment