Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Add checkbox column in datagrid

15 views
Skip to first unread message

Harsh Trivedi

unread,
Jul 18, 2005, 1:18:32 AM7/18/05
to
Hi,
I want to add checkbox column in datagrid.
In my PPC application when frmListing form opens( this is the name of the
form which has datagrid), all data from database is being filled through
calling of web service. Now I want to add checkbox in datagrid, which will
represents the boolean value of a field in database.If in database if value
is 1 then for that row checkbox should be checked otherwise not checked.
Thank you in advace

Arun

unread,
Jul 18, 2005, 9:26:33 AM7/18/05
to

Harsh Trivedi

unread,
Jul 19, 2005, 12:20:18 AM7/19/05
to
Ya, that is fine with listview(having checkbox), but I have 5 columns in the
grid, which I think not possible to have in ListView. Because of only this
requirement I have to search for the Checkbox in datagrid. :(

Sergey Bogdanov

unread,
Jul 19, 2005, 1:53:28 AM7/19/05
to
Do you want 5 columns and only one with checkbox? Then see this:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfsystemwindowsformslistviewclasstopic.asp


--
Sergey Bogdanov [.NET CF MVP, MCSD]
http://www.sergeybogdanov.com

Harsh Trivedi

unread,
Jul 19, 2005, 8:01:08 AM7/19/05
to
Thanks, I have dropped idea of using datagrid :)! Now I will be using
ListView for this purpose. But is seems very strange that we cannot place
Checkbox in Datagrid! :(


"Sergey Bogdanov" <sergey....@gmail.com> wrote in message
news:eiuWwYCj...@tk2msftngp13.phx.gbl...

Harsh Trivedi

unread,
Jul 21, 2005, 2:29:05 AM7/21/05
to
Hi,
In the same form, now I want two checkboxes. I.e. I have to give total 7
columns out of which two are having checkboxes. I don't find any solution to
the problem. Pl Help!!!


"Harsh Trivedi" <harshu...@yahoo.com> wrote in message
news:OG%23M0h1i...@TK2MSFTNGP10.phx.gbl...

0 new messages