ASP.NET 1.0 and 1.1 ProfessionalFor advanced ASP.NET 1.x coders. Beginning-level questions will be redirected to other forums. NOT for "classic" ASP 3 or the newer ASP.NET 2.0 and 3.5
Welcome to the p2p.wrox.com Forums.
You are currently viewing the ASP.NET 1.0 and 1.1 Professional section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Hi,
I have created a datagrid.
I would like to know how can I make the item area bigger even if the datasource it only has 2 rows of data.
Example, the are where the data is display is big as the number of rows exist on the datasource by I would like it bigger even if it only return 1 row.
You could place the grid inside of an asp:panel (<div> element) that has an explicitly set height. This will force it to take up whitespace on the page despite the contents. Keep in mind however that this will also cause the grid to be clipped if it exceeds the height of the asp:panel/<div>.
This is what my example will do. You need to provide explicit dimensions to an HTML element if you want it to take up more area than it would normally based on the size of the elements in its inner html.
Yes it works thanks.
Another think, when I select an item from the datagrid which is at the bottom of the div, the div it scroll back to the top, how can I keep the positionh of the DIV on the position of the item selected?