ASP.NET Gridview help

Soldato
Joined
1 Feb 2006
Posts
8,188
I have been given a VB.NET project to get fixed up in the next few weeks. It is now over 2 years since I did any ASPX stuff and am really struggling already!

The existing code has a Gridview and some sortable fields. I managed to get another field added as sortable by simple adding a sortable=true section in the aspx file.

Now I need to add a filter to only show certain values. Is there something easy that I can use to show only one status at a given time?

I want to be able to select only the gridview items with a status of 'completed' for example.

Really would appreciate any help with this. .NET seems really difficult.

The guys who wrote it don't use the messy wizard code and instead build up the Gridview elements manually so it's a bit harder to work out what is going on. I take it it is bad practice to use the default DataSource type connectors?
 
Ok - in which case, next suggestion - is it using a Dataset or SQLDataSource/similar? You could filter on the dataset and then run the databind. That way you can avoid making changes to the GridView.
 
I don't have the code infront of me now and can't even remember what way its written.

The whole project uses a custom mid-tier with it's own data retrieval/insertion classes. None of the code uses .NET wizard stuff really. All I know is that each instance of an object is iterated through and the relevant properties added as rows to the GridView.

I really am a noob at this so sorry if I'm not explaining too well.
 
Back
Top Bottom