Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

I've got a DataGridView (DGV) on a form that can display a *lot* of information - about 15 columns and thousands of rows. The rows aren't a problem, but it is difficult to display all of the columns because the Default cell size is larger than necessary.

 

Once the data is loaded, double-clicking a header-bar between cells will resize a column to the best fit, but not all of our users know this. Is there a way to get a DGV to autosize each column programatically?

 

Also, my fonts are all set to 8.25pt, but the cells are all still large. How do I make them smaller?

 

Finally, the default first column on the DGV is a row selector. Is there a way to adjust the width of this column? It doesn't really need to be as big as the default.

 

IDE: VS2005

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...