Problems using CellFormatting event in DataGridView

G

Guest

I'm writing a Winforms program in VB/Dot Net 2.0. I have a datagridview with
3 unbound fields that are filled in by the CellFormatting event handler,
based on lookups using values of 3 other fields in the datagrid. Actually
nothing is specifically 'wrong' but I'm wondering if anyone could give me
some suggestions to improve it.

First of all, performance could be better although I suspect this is in part
due to a rather slow network. Any alternatives to or tweaks on
CellFormatting that I might be forgetting? The actual lookup code is fairly
simple.

Second, I wonder if I'm making assumptions based on the old grid. I would
like to hide the columns holding the lookup keys but I find if I set Visible
to False, the lookup fails. The best I can do is wipe out the header text
and set the column width to 2. Any ideas?
 

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

Top