August 21st, 2003, 03:04 AM
-
Change datagridcell
I want to change a cell in my datagrid but with this code:
Code:
dataGrid1->set_Item(1,1,"Test");
I get this error:
error C2664: 'void System::Windows::Forms::DataGrid::set_Item(int,int,System::Object __gc *)': convertion of Parameter 3 from 'const char [5]' to 'System::Object __gc *' not possible
Is there a way to convert "Test" to System::Object__gc?
Is it possible to "count" the row, columns of the dataGrid at runtime?
Last edited by SirX; August 21st, 2003 at 03:22 AM.