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
--------------------
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Autofit Grid Columns 2
Autofit DataGrid Columns 1
Datagrid Columns 3
Datagrid / Columns / Autofit 1
Webform datagrid column width 1
AutoFit 4
Autofit columns, password protected 3
Currency autofit 5

Back
Top