datagrid question

jvcoach23

Member
Joined
Feb 21, 2005
Messages
17
Location
IL
Programming Experience
1-3
I am trying to populating a datagrid using a dataset. Problem is that this dataset is getting populated from another thread. once the dataset is populated.. i'm doing a raiseevent to send the dataset teh event handler. in the handler i do a datagrid1.datasource=ds. if I leave it at that.. the datagrid is populated, but there is a plus sign in the grid..i click on that select the name of the table and there is my data. in the past when not using a thread I would put a datagrid1.datamemeber="tablename" and it would display the data in the grid without having to hit the plus key. does anyone know of a way around this. I want the grid to be displaying all the data without having to hit the plus key.

by the way.. when i try to add the tablename to the datamemeber, i get an error about "controls created on one thread cannot be parented to a control oon a different thread.

hopeing someone can help
thanks
shannon
 
Back
Top