OdeToCode IC Logo

Auto resize DataGrid columns

Wednesday, January 21, 2004
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?