Autofit Datagrid Columns

  • Thread starter Thread starter Sean
  • Start date Start date
S

Sean

Hello, I would like to use the vb equivalent of the excel
autofit in a datagrid. I need each column to be the size
of its largest element. I do not want all the columns to
be the same size. Any ideas on a clean way to do this?

Sean
 
Does not work.

I get hsi error: Object reference not set to an instance
of an object.

Sean
 
Hi,

The code looks for the northwind database here c:\northwind.mdb.

Ken
--------------------
 
Back
Top