change datagrid column width with code

  • Thread starter Thread starter Tim Wallace
  • Start date Start date
T

Tim Wallace

I have a .NET 1.1, C# desktop application. In this app, there is a window
wherein I use the DataGrid control to display info for the user to edit. I
then grab that data (which initially comes from an accumulator table) and
call a stored procedure that places this data in a different table.
Everything works fine, save for a cosmetic issue. One of my columns needs
to be wider than the others to display more intelligble data. I cannot
figure out for the life of me how to do it. I haven't found a collection of
the columns or any similar thing with which I can tweak a single column's
width. Any pointers?

Tim
 
I hade to define TableStyles so that when I associate my DataView as the
DataSource, it had something to map to with the sizes already defined.

Tim
 
Back
Top