Grid Grouping Control Filterbar

I have a Grid grouping control that I am showing the Filterbar on. Filtering works as expected but I am wanting to change the style of the combo boxes to Autocomplete.

When I do this the comboboxes in the filterbar are no longer displayed.

[code]

For iloop = 0 To Me.DataGrid.TableDescriptor.Columns.Count - 1

DataGrid.TableDescriptor.Columns(iloop).Appearance.FilterBarCell.DropDownStyle = GridDropDownStyle.AutoComplete

Next iloop

[/code]

Tried searching the forum in vain for a solution to this.

Also, Any pointers on how to populate the filter for certain columns to a set of criteria. For example.

I have a column that shows a number in days between two dates (Datediff). The filterbar for this column is defaulted to the contents of the table. What I want is the drop down to contain items such as:

'> 14'
'> 0 and <= 14'
'< 0'

Selecting one of these items would set the filter accordingly. Any pointers?

Thank you
Dan.

3 Replies

HA haneefm Syncfusion Team May 4, 2007 05:56 PM UTC

Hi Dan,

Please refer to this KB article for customize the filterbar entry in a grid.
http://www.syncfusion.com/support/kb/grid/Default.aspx?ToDo=view&questId=323

Best Regards,
Haneef


DE DuplicateDanny Evans May 7, 2007 11:20 AM UTC

Thank you Haneef for the direction.
I have made a simple addaption to the FillWithChoices method in the example you gave in your link which sets the DropDownStyle to AutoComplete.

I have found that this change alone gives me a closer match to what I am after but the problem I see now is that the filterbar is verymuch mousedriven (Filtering only on a mouse click) rather than keyboard Enter. How would you advise I make the filterbar work on enter?


HA haneefm Syncfusion Team May 7, 2007 10:32 PM UTC

Hi Daniel,

Here is a forum thread that discuss with the simillar issue.
http://www.syncfusion.com/support/forums/message.aspx?&MessageID=58899

Best regards,
Haneef

Loader.
Up arrow icon