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?
posted on Tuesday, January 20, 2004 11:53 PM by scott

Comments

Thursday, January 22, 2004 9:03 AM by

# In Synch With Sells

Tuesday, March 22, 2005 12:28 PM by MBostock

# re: Auto resize DataGrid columns

Comment