VM,
You could always get the name of the type that is the data source of the
data grid. However, once you have that, you would have to use the
DataMember property as well to see what it is really bound to, subsequently
casting the data source to an IListSource interface and passing the name of
the DataMember to the GetList method. You can then find the typename of the
implementation to see what it is bound to. However, this will always be a
data view, because when you bind to a table, the DefaultView property is
taken and that view is the one that is shown.
Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
-
mv*@spam.guard.caspershouse.com
"VM" <vo******@yahoo.com> wrote in message
news:Oq**************@TK2MSFTNGP11.phx.gbl...
How can I check if a Windows Grid datasource is a datatable, dataset, or
dataview?
Thanks.