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. (Last updated on : Nov 16th 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

GridDataboundGrid Filterbar

Thread ID:

Created:

Updated:

Platform:

Replies:

81075 May 11,2009 06:26 PM UTC May 12,2009 02:36 PM UTC WinForms 2
loading
Tags: GridControl
Alomgir Miah
Asked On May 11, 2009 06:26 PM UTC

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

Jisha Joy [Syncfusion]
Replied On 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

Alomgir Miah
Replied On May 12, 2009 02:36 PM UTC

Thanks,

You saved my day.

Cheers,
Alomgir

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;