Auto resize DataGrid columns

I just updated an article on OdeToCode which resizes the columns in a Winforms DataGrid to match the longest content. Although I'm fairly happy with the reflection method - I'm still wondering how to determine the MappingName property without an ugly switch statement. This feature was in the early beta of VS.NET - I wonder why it dropped?

Print | posted @ Wednesday, January 21, 2004 7:53 AM

Comments on this entry:

Gravatar # re: Auto resize DataGrid columns
by MBostock at 3/22/2005 7:28 PM

Comment
  
Comments have been closed on this topic.
Scott Allen
Posts - 869
Comments - 4493
Stories - 14