joe_pool_is Posted January 17, 2008 Posted January 17, 2008 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 Quote Avoid Sears Home Improvement
joe_pool_is Posted January 17, 2008 Author Posted January 17, 2008 [PLAIN]Re: DataGridView settings [resolved][/PLAIN] Nevermind. I found it. On the DataGridView control, I set the RowHeaderVisible property to False, the SelectionMode behavior to FullRowSelect, and the Layout's AutoSizeColumnMode and AutoSizeRowsMode to AllCells. Quote Avoid Sears Home Improvement
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.