Hey Haneef,
I tried the below code and the test appears on the top left corner instead of the first row above the grid. Can you help me fix this.
this.dataGridAPS.Model.Rows.HeaderCount = 1;
for(int i = 1; i <= this.dataGridAPS.Model.ColCount;i++)
this.dataGridAPS.Model[1,i].Text = this.dataGridAPS.Model[0,i].Text ;
this.dataGridAPS.Model.CoveredRanges.Add(GridRangeInfo.Row(0));
this.dataGridAPS.Model[0,0].Text = "Proposal A";
Please refer to the picture for clarity.
>Hi Charlie,
Try setting the Rows.HeaderCount property to add the number of extra header in a grid and also call the CoveredRanges.Add(GridRangeInfo.Row(0)) to make the ZERO th row as covered cell. Below is a code snippet
this.grid.Model.Rows.HeaderCount = 1;
for(int i = 1; i <= this.grid.Model.ColCount;i++)
this.grid.Model[1,i].Text = this.grid.Model[0,i].Text ;
this.grid.Model.CoveredRanges.Add(GridRangeInfo.Row(0));
this.grid.Model[0,0].Text = dt.TableName;
this.grid.ThemesEnabled = true;
Thanks,
Haneef
caption.zip