#1
  1. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Aug 2003
    Posts
    64
    Rep Power
    12

    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 04:22 AM.

IMN logo majestic logo threadwatch logo seochat tools logo