Populate a datacontrol with a COM object

samshiell

Member
Joined
Oct 26, 2004
Messages
10
Programming Experience
10+
Hi Guys

I've a COM object in my project that returns a recordset. I want to populate a DataGridView control with this recordset but can't see how.

I thought it would be as easy as setting the control's DataSource property to the COM object but this just didn't do anything, although it didn't crash. I've been playing about for some while but not got anywhere yet...

The COM object is definately returning some rows.

btw this is going to be a generic component so the actual record structure that comes back will almost certainly be different every time it runs, so it has to be "automatic"

Thanks

Sam
 
Back
Top