This question is locked. New answers and comments are not allowed.
I am writing to ask how best a DataGrid can be populated programmatically, in C#;
The code is calling out to a WCF Service application, and brings back results in a list;
The below code displays an error of "cannot convert type string to DataGridColumn"
Any insight, guidance is appreciated;
scData = new Service4Client();
var newTestSC = await scData.GetVWScorecardAsync(capFMFY, capGeoName, capSegment);
scI = newTestSC.Count;
for (int i = 0; i < scI; i++)
{ for (int j = 0; j < 5; j++)
{
this.rdgVWAccounts.Columns[j] = newTestSC[i].MetricDisplayName;
}
}