Q: DataView or DataTable

  • Thread starter Thread starter Geoff Jones
  • Start date Start date
G

Geoff Jones

Hi

Can anybody tell me how to determine, from within an overrided DataGrid,
whether the datasource of the datagrid is a DataView or DataTable?

Thanks in advance

Geoff
 
Geoff,

Have you considered something like:-

Dim oRet as new object

oRet = dg.datasource
if typeof oRet is datatable then

else
if typeof oRet is dataview then

end if
end if

Haven't tried this, but HTH. Phil
 
Many thanks Phil

Phil G. said:
Geoff,

Have you considered something like:-

Dim oRet as new object

oRet = dg.datasource
if typeof oRet is datatable then

else
if typeof oRet is dataview then

end if
end if

Haven't tried this, but HTH. Phil
 
Can anybody tell me how to determine, from within an overrided DataGrid,
whether the datasource of the datagrid is a DataView or DataTable?
if typeof datagrid1.datasource Is DataTable then ...........
etc

I hope this helps,

Cor
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top