Filterbar in Virtual Grids

I like to add filterbar to a virtual grid (_grdMaintainDC) but when I use wiregrid method I am getting an error saying that the gridcontrol can not be converted to databoundgrid. Here is my code to declare and wire the filterbar.

_filterBar = New GridFilterBar()
_filterBar.WireGrid(Me._grdMaintainDC)

I am fairly new to VB.Net and syncfusion. Please help.

3 Replies

AD Administrator Syncfusion Team April 13, 2007 03:53 PM UTC

GridFilterBar is only supported for a GridDataBoundGrid. You cannot use it with a GridControl which is why you are getting the error.

Here is a forum post on trying to add a filter bar to a virtual grid.

www.syncfusion.com/Support/Forums/message.aspx?&MessageID=45162


FR Frank April 16, 2007 05:59 PM UTC

Thanks Clay for pointing to the message id 45162. The attached example in that message had C# code. Is it possible to get similar code in VB.Net? Thanks for your help in advance.


AD Administrator Syncfusion Team April 17, 2007 05:30 PM UTC

Here is a link. I zapped the C# with a C#-VB tool so the VB code may look a little hokey.


WindowsApplication1390.zip

Loader.
Up arrow icon