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
Post a Comment