I have a gridview bound to a SQL Select statement. I want the binding of one of the columns to depend on one of the values in the database record. For example, say I have a SQL table containing FirstName, LastName, ShowFirstName.
I want a the Name column in my Gridview to be bound to FirstName if ShowFirstName is 1, and bound to LastName if ShowFirst Name is 0.
What's the easiest way to do that?
View Complete Post