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?

MBostock Tuesday, March 22, 2005
Comments are closed.

My Pluralsight Courses

K.Scott Allen OdeToCode by K. Scott Allen
What JavaScript Developers Should Know About ECMAScript 2015
The Podcast!