Q: DataView or DataTable

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
 
P

Phil G.

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
 
G

Geoff

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
 
C

Cor Ligthert [MVP]

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

Top