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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Empty filter bar problem with asynchronous data source

Thread ID:





30447 Jun 17,2005 03:58 PM UTC Jun 17,2005 06:44 PM UTC WinForms 2
Tags: GridControl
Brian Wright
Asked On June 17, 2005 03:58 PM UTC

I have a gridgroupingcontrol with a filter bar on it. What is different about this control, is that I do not set the ".DataSource" for it until sometime after the form has already been loaded and displayed. (I am asynchronously loading the data in the background). When I do finally set the DataSource, the grid displays the data just fine.. but the filterbar does not have any values in the drop down listboxes to allow the user to filter the grid. Any idea how I can tell the filterbar to refresh its list of filterable values after I set the DataSource?

Brian Wright
Replied On June 17, 2005 04:10 PM UTC

Okay, I am having an additional problem. I am setting all of the column header labels using GridColumnDescriptor objects (.HeaderText property) in the TableDescriptor.Columns collection . After setting the data source asynchronously, it changes my column header labels that I had set previously. It changes them to the column name of the underlying datasource which I do not want to use. Is there a way to solve this?

Brian Wright
Replied On June 17, 2005 06:44 PM UTC

Nevermind.. it all works. Basically I was setting this for each column: gridColumnDescriptor1.Name = "xx" But I simply got rid of all those lines and changed them to: gridColumnDescriptor1.HeaderText = "xx" and both problems went away.. Sorry.


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.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon 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.Close Icon