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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to make Gridview Column show as Checkbox 1

Status
Not open for further replies.

LonnieJohnson

Programmer
Apr 16, 2001
2,628
US
I have a GridView that has four columns from a SQL Server View. The four columns and their data types are...

Page ID : Int
Page : String
Add : Int
Remove : Int

The Add and Remove columns are yes/no fields that have 0 or 1. How can I make those two columns show as check boxes on my GridView?

I am using VS2005.

Thanks.

ProDev, Builders of Affordable Software Applications
Visit me at ==>
May God bless you beyond your imagination!!!
 
Add a checkbox field to the grid as a bound column, or create a template column and add a checkbox
 
The checkbox inside the template field is what did the trick. Also worked with a drop down list which actually worked better.

Thanks.

ProDev, Builders of Affordable Software Applications
Visit me at ==>
May God bless you beyond your imagination!!!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top