Grid Header

Hi all,

I have problem in increasing the height of the grid header(only header) in GridDataBoundGrid.so,
to make the caption in the header looks good.
can anyone suggest me a idea.

thanks in advance,

Dhana



3 Replies

AD Administrator Syncfusion Team December 26, 2006 08:39 AM UTC

Hi Dhana,

Use the Model.RowHeight property to increase the height of row in a grid. Here is a code snippet to increase the ColumnHeader row height.

this.gridDataBoundGrid1.Model.RowHeights[0] = 200;

Best Regards,
Haneef


DH dhana December 27, 2006 05:49 AM UTC

hi Haneef!

its working fine.

I have another problem?

I have checkbox in my GridDataBoundGrid.

and instead of displaying checkbox for each row

i should only one checkbox representing a group of records,i may have 5 to 6 group with each groups having 1 to 10 records in it.so i should have only no. of checkbox equal to no. of Groups.
how to tackle this problem.

i have attched the exact prototype of the screen.

pls suggest me a idea.

thanks in advance.


AD Administrator Syncfusion Team December 27, 2006 06:01 AM UTC

Hi Dhana,

Try adding the Model.CoveredRanges in a grid to resolve this. Here is a code snippet to show this.

//Group1#(1,1) cell is CheckBox cell.
this.gridDataBoundGrid1.Model.CoveredRanges.Add(GridRangeInfo.Cells(1,1,3,1));
//Group2#(4,1) cell is CheckBox cell.
this.gridDataBoundGrid1.Model.CoveredRanges.Add(GridRangeInfo.Cells(4,1,7,1));
//Group3#(8,1) cell is CheckBox cell.
this.gridDataBoundGrid1.Model.CoveredRanges.Add(GridRangeInfo.Cells(8,1,11,1));

Please refer to the attached sample for more details.
GroupCheckBox.zip

Best Regards,
Haneef

Loader.
Up arrow icon