datagridview data
-
hi agein to all
array^row0 = {"11/22/1968","29"}; DataGridView1->Rows->Add( row0 ); row0[0]="2"; Object^ a= DataGridView1->DataSource; a[0]="123";
error C3915: 'System::Object' has no default indexed property (class indexer) how do i acces the rows after they are created / aplyed i havent try it but i am prety sure i coud overwrite it like DataGridView1->Rows->Add( somethingelse ); mayby not whit add :p it woud just append / push it in this case any way the question is how can i acces it streigt to replace data something like DataSource[row][col]= "my new value"; i not wana use databinding to a data base as the data are live generated and i dont think it woud make thinks easyer any way ;) on top if this is there any way to list the content and types whats in an object some recursive loop wich woud rotate truh all elements of the object by it an array a mullti dim array or what ever object combination -
hi agein to all
array^row0 = {"11/22/1968","29"}; DataGridView1->Rows->Add( row0 ); row0[0]="2"; Object^ a= DataGridView1->DataSource; a[0]="123";
error C3915: 'System::Object' has no default indexed property (class indexer) how do i acces the rows after they are created / aplyed i havent try it but i am prety sure i coud overwrite it like DataGridView1->Rows->Add( somethingelse ); mayby not whit add :p it woud just append / push it in this case any way the question is how can i acces it streigt to replace data something like DataSource[row][col]= "my new value"; i not wana use databinding to a data base as the data are live generated and i dont think it woud make thinks easyer any way ;) on top if this is there any way to list the content and types whats in an object some recursive loop wich woud rotate truh all elements of the object by it an array a mullti dim array or what ever object combinationIf i'm following you right i think you wanna do something like this
DataGridView^ dgv = gcnew DataGridView(); //---Add rows to the DataGridView //this dgv->Rows\[0\]->Cells\[0\]->Value = "new date"; dgv->Rows\[0\]->Cells\[1\]->Value = "new number"; //or this dgv\[0, 0\]->Value = "new date"; dgv\[0, 1\]->Value = "new number";
Don't be overcome by evil, but overcome evil with good
-
If i'm following you right i think you wanna do something like this
DataGridView^ dgv = gcnew DataGridView(); //---Add rows to the DataGridView //this dgv->Rows\[0\]->Cells\[0\]->Value = "new date"; dgv->Rows\[0\]->Cells\[1\]->Value = "new number"; //or this dgv\[0, 0\]->Value = "new date"; dgv\[0, 1\]->Value = "new number";
Don't be overcome by evil, but overcome evil with good