WebGrid 7 Does Not Display Full Data Horizontally

5 replies. Last post: February 8, 2010 8:46 PM by Andi Santoso
Tags :
  • (None)
  • New Discussion
  • New Question
  • New Product Feedback
A YousifMember

We need to accomplish something very simple, but I'm having a terrible time achieving our goal with WebGrid.  At the moment I just cannot get the grid to do this simple thing.

Show my data in it's entirety in each column and as wide as it needs to be and no line wrapping in the rows or the header columns.  Basically each column should be as wide as necessary to display the longest line of text for the records loaded and the grid to stretch as wide as it needs to show the data.

We also need to be able to set the wrap and width, of a specific column if needed with the others behaving as mentioned.

I'd appreciate it if you can provide a sample that does this since I couldn't find any in the live samples that do this.

Also, no matter what we do, using Best Fit always impacts other column sizes.  Plus, we want our custom check box column, which is an ITemplate, to be a static width and no matter what we set it to, it comes up different widths on different grids.

So whatever sample you provide that does this, we can then use as a template to configure our grid.  Thank you.

See the attached examples of what I'm talking about.  Basically the grid should size itself to the content and it doesn't.  You can't see the full Name or the End Date.  Note the check box column size is different in the two snapshots.

All times are GMT -5. The time now is 9:43 AM.
Previous Next