I am using a "GriedViewControl" with 14 columns and with this code below I can set the number "1" to the First Column and 21 Rows down.
What I wonder is how I access for example column 3 and row 1 or column 4 and row 2 etc...
What is the way/syntax to do this ?
I am not sure wich one of all column.. members to use here.

String^ Numbers = "1";

for( int i = 0; i < 20; i++)
{
	MainResultGrid->Rows->Add(Numbers);
}

I found a solution that look like this:

MainResultGrid->Rows[3]->Cells[4]->Value = "abc";

I am using a "GriedViewControl" with 14 columns and with this code below I can set the number "1" to the First Column and 21 Rows down.
What I wonder is how I access for example column 3 and row 1 or column 4 and row 2 etc...
What is the way/syntax to do this ?
I am not sure wich one of all column.. members to use here.

String^ Numbers = "1";

for( int i = 0; i < 20; i++)
{
	MainResultGrid->Rows->Add(Numbers);
}
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.