I want to bind the data dynamically to the RadGridView control [Columns would be known at the run time only] .
The Data Source for the RadGridView is a Generic List Collection of “OperatingCondition”.
public class OperatingCondition
{
public OperatingCondition(int stage)
{
this.Actual = new string[stage];
this.Theoritical = new string[stage];
}
public string OpCondtition { get; set;}
public string[] Actual { get ; set; }
public string[] Theoritical{ get; set;}
}
Actual and Theoritical coulmns has to created based on the number of stages. Eg: If the stage is 3, then grid should show the 3 Actual and Theoritical values as columns in the grid.
Please suggest how to bind this datasource to the grid.