List Info

Thread: C-Sharp (C#) Group: Re: MySQL to a Datagrid




C-Sharp (C#) Group: Re: MySQL to a Datagrid
user name
2006-11-15 12:02:18
Hello,
You can't use a dataset nor a datatable to feed a
datagridview, you've
got to use bindingSource instead.

                BindingSource bs = new BindingSource();
                bs.DataSource =  db_data.Tables[0];
                dbgView.datasource = bs;

Hope it helps.

Martin Garmendia


--~--~---------~--~----~------------~-------~--~----~
 You received this message because you are subscribed to the
Google Groups "C-Sharp (C#)" group.
To post to this group, send email to C_Sharpgooglegroups.com
To unsubscribe from this group, send email to
C_Sharp-unsubscribegooglegroups.com
For more options, visit this group at htt
p://groups-beta.google.com/group/C_Sharp?hl=en
-~----------~----~----~----~------~----~------~--~---

[1]

about | contact  Other archives ( Real Estate discussion Medical topics )