Hello All,
I want to bind the data dynamically to the RadGrid 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 and each Actual and Theoritical column headers should be grouped to show the stage number.
Please suggest how to bind this datasource to the grid.