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.
Unfortunately, activation email could not send to your email. Please try again.

Grid Grouping Control Filterbar

Thread ID:

Created:

Updated:

Platform:

Replies:

60427 May 4,2007 08:12 AM May 7,2007 06:32 PM Windows Forms 3
loading
Tags: GridControl
DuplicateDanny Evans
Asked On May 4, 2007 08:12 AM

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.

haneefm [Syncfusion]
Replied On May 4, 2007 01:56 PM

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

DuplicateDanny Evans
Replied On May 7, 2007 07:20 AM

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?

haneefm [Syncfusion]
Replied On May 7, 2007 06:32 PM

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

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.

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.

;