I am trying to reset the data inside a grid control when a radio button is changed.
Here is the code i am trying on event "change" :
Code: Select all
if (rbMyJobs.Checked == true) {
op_MyJobsOnly = true;
}
if (rbMyJobs.Checked == false) {
op_MyJobsOnly = false;
}
GetJobTitles.Disconnect();
GetJobTitles.Connect();
object [] values = Stimulsoft.Report.Dictionary.StiDataColumn.GetDatasFromDataColumn(this.Dictionary, "GetJobTitles.JobTitle");
gcJobTitle.Items.Clear();
gcJobTitle.Items.AddRange(values);
I am getting the following error:
Any help would be much appreciated, i haven't worked with the Grid Controls before.The error of compilation
The error of compilation is found in the 'CheckedChanged' event of the 'rbMyJobs' component:
'Stimulsoft.Report.Dialogs.StiGridControl' does not contain a definition for 'Items' and no extension method 'Items' accepting a first argument of type 'Stimulsoft.Report.Dialogs.StiGridControl' could be found (are you missing a using directive or an assembly reference?)