views:

417

answers:

1

Basically I have a detailsview, dependent on what query it is I have certain BoundFields I'd like to show or hide.

Using visual basic, I know that I can use .visible = false. That does the trick, however, it sacrifices my alternating row style in the process.

Any ideas?

Thanks

By the way if you write it in C# I will probably understand.

A: 

What you need to do is create several asp:panel objects. Inside each panel object, put a single DetailsView. In your codebehind, you will want to show the panel that contains the proper DetailsView for your query, and hide the rest of the panels.

splatto