|
-
Jul 7th, 2008, 05:41 AM
#1
Thread Starter
Addicted Member
[2008] DataGridView - is this feasible?
Hello,
I'm trying to replicate functionality present in a legacy system.
The old system has what could be referred to as a DataGridView. The SelectionMode is FullRowSelect.
I've bound the DataGridView, and want to allow the user to query content of the DataGridView by creating a new, empty, row at the top of the grid (whilst disabling the "selectability" of the other rows), switching the SelectionMode to CellSelect where the user can type in any data that may be contained in the grid, press OK, and produce a filtered grid based on the data the user has queried for.
Is this possible?
-
Jul 7th, 2008, 05:12 PM
#2
Re: [2008] DataGridView - is this feasible?
Must the user enter the filterable conditions in the DataGridView? I think it would be easier to use TextBoxes that are external to your DataGridView, bind your data to a BindingSource and use the BindingSource's Filter Property.
http://msdn.microsoft.com/en-us/libr...ce.filter.aspx
http://www.c-sharpcorner.com/UploadF...74917PM/1.aspx (in C#)
-
Jul 8th, 2008, 04:37 AM
#3
Thread Starter
Addicted Member
Re: [2008] DataGridView - is this feasible?
Thanks for your reply.
At the time of writing, I have to try and maintain the "look-and-feel" of the old software, and this particular feature is widely used by all of our clients.
As a contingency, I'd already started doing what you've suggested.
If it is possible, then I'd like to do it.
If not, I'll continue down the route I've taken.
All suggestions welcome ....
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
|