We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
close icon

binding specific columns

Hello,

I bind data table to the gridGrouping control.

I don't want to see all the columns of the table just the ones that I choose (like gridView)
How can I do that ?

When I resize the gridGroupingControl (Height) the colums and the rows size also change.
How can I disable this behaviour


1 Reply

RS Rajarajeswari S Syncfusion Team June 28, 2008 05:55 PM UTC


Hi Ron,

Thanks for evaluating Syncfusion products.

1. I don’t want to see all the columns of the table:

In GridGroupingControl, using VisibleColumns collection we can control the display of the columns. You have to just add the columns in the collection to make it visible. Please refer the below code snippet which illustrates this:

$TableDescriptor>
$VisibleColumns>
$syncfusion:GridVisibleColumnDescriptor Name="ID" />
$syncfusion:GridVisibleColumnDescriptor Name="EmpName" />
$syncfusion:GridVisibleColumnDescriptor Name="EmpNo" />
$syncfusion:GridVisibleColumnDescriptor Name="DeptNo" />
$/VisibleColumns>
$/TableDescriptor>

Please refer the sample from the below link which illustrates this:

http://websamples.syncfusion.com/samples/Grid.Web/6.3.0.10/Grid_Web_VisibleColumns/main.htm

2. Resize the GridGroupingControl (Height) the colums and the rows size also change:
This is the default behavior of the control. We can’t change this. The GridControl will be rendered as an Html table of the whole. So the table elements (row, columns) depends on the width and height of the table(GridControl).

Please let me know if you have any other concerns.

Regards,
Raji



Loader.
Live Chat Icon For mobile
Up arrow icon