//给ultraGrid1设置行列名称,并给第一列赋值
#region 给ultraGrid1设置行列名称,并给第一列赋值
this.ultraGrid1.DataSource = this.ultraDataSource1;
this.ultraDataSource1.Band.Key = "RootBand";
this.ultraDataSource1.Band.Columns.Add("ID", typeof(int));
this.ultraDataSource1.Band.Columns.Add("Col0", typeof(int));
this.ultraDataSource1.Band.Columns.Add("Col1", typeof(string));
UltraDataBand childBand = this.ultraDataSource1.Band.ChildBands.Add("ChildBand");
childBand.Columns.Add("ChildCol0", typeof(double));
childBand.Columns.Add("ChildCol1", typeof(Int32));
this.ultraDataSource1.Rows.SetCount(100);
UltraDataColumn column = this.ultraDataSource1.Band.Columns["ID"];
for (int i = 0; i < this.ultraDataSource1.Rows.Count; i++)
{
this.ultraDataSource1.Rows[i][column] = i;
}
ultraTextEditor1.Text = "90";
this.rdExternalSummaryCalculator.Checked = true;
#endregion 给ultraGrid1设置行列名称,并给第一列赋值