Link to home
Start Free TrialLog in
Avatar of karlhsc
karlhscFlag for Afghanistan

asked on

Dynamic ListView Column

Hello, I've got a standard ListView control setup that displays data from a SQL database based on a query that I provide to it.

Along with the columns I indicated in the creation of the ListView control, I need to create 1 dynamic column that holds data from one of two other columns in the ListView.  Here is the logic:

My custom column will be called Column3.  If something exists in the first column, add it to the Column3 ELSE if something exists in the second column add it to Column3.

The data for all of the columns except this dynamic column (Column3) would be drawn directly from the database.

Code examples would be great.

Also, would it be possible to add such a dynamic column to a GridView?

I'm using ASP.NET (C#) 3.5 Framework.

Thank you in advance.
ASKER CERTIFIED SOLUTION
Avatar of gamarrojgq
gamarrojgq

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial