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.

filterbar autocomplete?

Thread ID:





6697 Aug 22,2003 08:52 AM Aug 29,2003 08:48 AM Windows Forms 4
Tags: GridControl
scot adams
Asked On August 22, 2003 08:52 AM

Is there any way to make the filterbar have autocomplete capabilities?

Administrator [Syncfusion]
Replied On August 22, 2003 08:59 AM

To get the autocomplete using the standard GridFilterBar, try this. In the sample we ship (), remove the line in SetTableIntoGridAndWireFilterBar that reads theFilterBar.WireGrid(this.gridDataBoundGrid1); and replace it with this code. GridStyleInfo style = new GridStyleInfo(); style.ModifyStyle(this.gridDataBoundGrid1.BaseStylesMap["Header"].StyleInfo, StyleModifyType.Copy); style.CellType = "ComboBox"; style.ExclusiveChoiceList = true; style.BaseStyle = "Standard"; style.Font.Bold = false; style.BackColor = this.gridDataBoundGrid1.TableStyle.BackColor; style.Borders.Bottom = new GridBorder(GridBorderStyle.Dashed); style.DropDownStyle = GridDropDownStyle.AutoComplete; theFilterBar.WireGrid(this.gridDataBoundGrid1, style); This adds the DropDownStyle = AutoComplete setting to the default combobox.

scot adams
Replied On August 22, 2003 11:01 AM

can't thank you enough for all the speedy help... you're awesome

Replied On August 29, 2003 08:20 AM

Is there any way to make the filterbar use 'LIKE a*' to filter the data, instead of using the '=a' currently?

Administrator [Syncfusion]
Replied On August 29, 2003 08:48 AM

If you want to see the items in the grid dynamically filter as you type into the filter cell, then here is a little sample that does this. It uses a derived GridFilterBar class to implement this functionality.


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.