vb.net - Combobox Datasource assign to Datatable -


how convert datasource of combobox datatable in vb.net? know how assign datatable combobox. in case need opposite way.

like:

dim dt datatable = combobox1.datasource

is possible?

i use trycast job done.

dim dt datatable = trycast(combobox1.datasource, datatable)  if dt nothing     ' didn't work because it's not datatable     ' editors: did not reduce expression     '          emphasize need check 'nothing'     '          , handle appropriately. else     ' yay it's datatable end if 

Comments

Popular posts from this blog

Magento/PHP - Get phones on all members in a customer group -

php - .htaccess mod_rewrite for dynamic url which has domain names -

Website Login Issue developed in magento -