I am dynamically creating the columns of the webgrid. Everything is fine except that there is a large chunk of blank space after the grid giving the page a big horizontal scroll. I am not getting where I am getting this space from. I have attached the image file showing the blankspace after the grid.
Can anybody help me with some pointers??
Thanks
I got it. When I was creating the columns dynamically, I was trying to increase the width of the grid dynamically based on number of columns and that was causing the problem.
I commented that line and the space went away.
Thanks for your suggestions.
Try:
this.ultraWebGrid.Width = Unit.Empty;
What widths are you giving to columns that you are creating?