|
-
Jan 9th, 2007, 09:41 AM
#1
Thread Starter
Fanatic Member
Filter text disappearing in C1TrueDBGrid VB.NET 2003
Edit: VB.Net 2003
Hello,
I am using a C1TrueDBGrid (a ComponentOne object) that allows filtering on each column. My problem is that when I refresh data any text in the filter boxes on the grid are erased. The filtering still works because that is saved, but the text itself disappears. There is another place in the program where this doesn't happen, and I think I know why. In the other place the Datasource is set in the designer. However, this part of the program needs to be very dynamic, so the dataset is built on the fly and then bound to the grid.
VB Code:
ds.Clear()
sqlDA.Fill(ds.Tables(0))
Me.tdbgrdCPE.SetDataBinding(ds.Tables(0), "", True)
Is this what is causing any text in the filter boxes to disappear?
Also, like I said, the filter string is saved, but you can't just set the grid's filter to the filter string and have it repopulate those filter boxes. Any ideas? Or am I just screwed?
Last edited by 18experience; Mar 23rd, 2010 at 09:37 AM.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|