Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations dencom on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Datagrid with a "filter" row

Status
Not open for further replies.

jecairns

Programmer
Oct 5, 2005
21
CA
I am currently attempting to create a datagrid (or dataview) that, when the datatable is loaded into it, sets the first row as editable, and the remaining rows as readonly. The first row is to be used as a "filterbar"- enter values and filter the results in the datagrid based on it. I know this might seem like an antiquated interface, but it is one necessary by the end user.

Any help with this would be welcome and greatly appeciated.

James
 
I think it would be a confusing interface, but that's just my opinion. The user is going to have to scroll up if they are down on the data grid to change their filter, and how are they going to know that the first row is the filter bar?

I would simply add another datagrid above your main one. Add one one row to the data table, and let the user edit it, but not add.
 
I would go with RG's suggestion. It might be a tad bit challanging if your data is wider then your grid, but if you capture all of the events well enough, it should be pretty seamless.

-Rick

VB.Net Forum forum796 forum855 ASP.NET Forum
[monkey]I believe in killer coding ninja monkeys.[monkey]
 
I was thinking that the first row would have a different background color. Why the interface is like this is b/c it is based on (to look like)an ERP interface that the company uses. So, just to be sure, there is no way to do this dynamically, (other than build my own datagrid class?)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top