Hi, I'm trying to cast DataGrid to Dataset see below (C++)
Dataset *mydataSet = __try_cast<DataSet*>(myDataGrid->DataSource);
However, I get the following error: "Specified Cast is not Valid".
I'm trying to loop through the rows in the datagrid therefore I need to cast the datagrid to a dataset, I populate the datagrid with a datatable.
Would anyone have any suggestions on what I need to make it work
Thanks
Visual C++14
|