hi comunity!!! since method Add() takes Object as an argument, can I add for example datatables, then unbox them?
example:
cmbEmpresa.Items.Add(dt1);
cmbEmpresa.Items.Add(dt2);
cmbEmpresa.Items.Add(dt3);
then do something like:
datagrid.datasource=(DataTable)cmbEmpresa.SelectedItem;
EDIT:
and what about adding different type of objects, how can I unbox them according to the SelectItem's original type?