Click here to Skip to main content
15,886,199 members
Articles / Desktop Programming / MFC

Binding Checkbox in GridView (A work around)

Rate me:
Please Sign up or sign in to vote.
4.00/5 (1 vote)
16 Sep 2010CPOL 10.7K   4  
I needed to bind a checkbox in gridview to a database field but to my disappointment I found that this was not easy. We could bind “Text” property but what if I don’t want to display the value I am binding (e.g. ID of that record). Here is a work around.

Alternatives

Members may post updates or alternatives to this current article in order to show different approaches or add new features.

No alternatives have been posted.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Software Developer
Pakistan Pakistan
Syed Mujtaba Hassan
Software Engineer
Intelligentsia Software (Pvt) Ltd Islamabad Pakistan.

Comments and Discussions