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

GridDataboundGrid Filterbar

Hello,

I was trying to use the GridDataboundGrid with NHibernate. As all the object collections in NHibernate are List, the GridDataBoundGrid cannot display the Filterbar with the following code

this._gridFilterBar = new GridFilterBar();
this._gridFilterBar.WireGrid(this.gridXC);

However the same piece of code can display the filterbar when DataSet is used instead. I am assuming it has something to do with TypeDescriptors. Any help is appreciated.

Thanks,
Alomgir

2 Replies

JJ Jisha Joy Syncfusion Team May 12, 2009 06:18 AM UTC

Hi Alomgir,

Thanks for your interest in Syncfusion products.

In GridDataBoundGrid, GridFilterBar will support only for DataTable or DataSet type of datasources. One way to achieve this is, to create a custom FilterBar by deriving from GridFilterBar class.

Here is a sample that shows the custom filterbar supporting IList type of datasource as ArrayList is an implementation of IList.

Samplelink

In this sample, collection is implemented using ArrayList.

Regards,
Jisha


AM Alomgir Miah May 12, 2009 02:36 PM UTC

Thanks,

You saved my day.

Cheers,
Alomgir

Loader.
Live Chat Icon For mobile
Up arrow icon