Hello
I am new in ASP .Net and I am having some issues regarding my first attemps with the WebGrid. How can I make the grid to have the width of the page?
Thanks a lot.
Same way as you did for the width. Set the Height property to 100%.
Please note that setting height in percentages didn't work in few pages, I am unable find out why that is happening. We set the height in pixels as workaround.
Thanks for your previous post. It worked fine.
Now, I have a second question: When the bound datatable does not have rows, the webgrid has the expected width but the height is minimum, like a centimeter or so. I'd rather have the grid to have about the height of the screen in these cases; how can I accomplish that?
Generally, we set Width property of the grid to 100%.
See this article also:
http://devcenter.infragistics.com/Support/KnowledgeBaseArticle.aspx?ArticleID=2529