L
LuvinLunch
Hi,
I need some advice on how to use a datagridview properly. I'm
converting a vb6 app to vb.net. In the vb6 application I was passing
an empty datagrid by referene to a class I'd written, I was populating
the datagrid and passing it back to the form all set up for action.
I've tried doing the same in vb.net but the class I've written doesn't
recognise the datagridview. So my question is, is passing the
datagridview from a form class to a class I've written the best way to
populate my datagridview? I'm really keen to have the populating of
the grid done in the class and not on the form. Should I be
inheriting the grid into the class? Is the way I'm passing it
incorrect?
All advice gratefully received.
LL
I need some advice on how to use a datagridview properly. I'm
converting a vb6 app to vb.net. In the vb6 application I was passing
an empty datagrid by referene to a class I'd written, I was populating
the datagrid and passing it back to the form all set up for action.
I've tried doing the same in vb.net but the class I've written doesn't
recognise the datagridview. So my question is, is passing the
datagridview from a form class to a class I've written the best way to
populate my datagridview? I'm really keen to have the populating of
the grid done in the class and not on the form. Should I be
inheriting the grid into the class? Is the way I'm passing it
incorrect?
All advice gratefully received.
LL