Hi

i have a gridview that is created dynamically and then added to placeholder. The systems layout is 3 columns, the menu in the first, a form in the second and the gridview in the third.
The user has the option to make the third panel expand so that the second panel disappears, what I am looking to do is that when the panel with the gridview is expanded the gridview will dynamically fit the section instead of staying the same size as when the panel isn't expanded.
Not sure how to do this, was thinking it was something to do with the gridview width but since the gridview is created dynamically in the back end code I can't seem to set the width.

Any help would be great.

Provide a CssClass to your gridview with a width valuer of 100%. That will make your gridview span to the 100% of the width of tis parent container.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.