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.

Empty filter bar problem with asynchronous data source

Thread ID:





30447 Jun 17,2005 11:58 AM Jun 17,2005 02:44 PM Windows Forms 2
Tags: GridControl
Brian Wright
Asked On June 17, 2005 11:58 AM

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 12:10 PM

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 02:44 PM

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.

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.