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.

Refresh filterbar in GDBG

Thread ID:

Created:

Updated:

Platform:

Replies:

7105 Sep 11,2003 10:17 PM Sep 12,2003 09:05 AM Windows Forms 3
loading
Tags: GridControl
Markus Kraft
Asked On September 11, 2003 10:17 PM

Hi, i have a GDBG with a datatable source. At runtime the values in the table will be sporadic updated but the filter dont shows the new values. unwire and wire take to much runtime. Is another way possible to update/refresh the filterbar? greetings Markus

Administrator [Syncfusion]
Replied On September 12, 2003 04:38 AM

The datasource for the filterbar combobox cell is stored in a cached style in a headerrow of the grid. So, you can retrieve it and modify it. private void button3_Click(object sender, System.EventArgs e) { DataTable dt = this.gridDataBoundGrid1[1,4].DataSource as DataTable; if(dt != null) { dt.Rows[4][0] = "aaaaaaaaaa"; } }

Markus Kraft
Replied On September 12, 2003 06:07 AM

Hi Clay, your answer means i must permanently scan-up my DataSource to refresh manually the filtertables. I dont want change the filter from extern, only changes in the DataSource should be visible in the wired filterbar. Is a simpler solution available? greetings markus

Administrator [Syncfusion]
Replied On September 12, 2003 09:05 AM

The datasources for the dropdowns in the comboboxes are dynamically created when the FilterBar is wired. So, they are not bound to any particular datasource that you provide. If you want to automate this updating, I think you would have to subscribe to the whatever change events the datasource that you provided as the grid's datasource has. In the change event handlers, you would decide exactly what value in the datasource changed, and then use the code I suggested above to explcitly make the change to the proper combobox's datasource. Another option that avoid all this would be to postpone creating the droplist until the th ecombobox is dropped, and each time recreate teh list. This woul dbe simpler, but if you were concerned about rewiring taking too long, this may also be a concern here. You would do this in the CurrentCellShowingDropDown event.

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.

;