Add checkbox column in datagrid

  • Thread starter Thread starter Harsh Trivedi
  • Start date Start date
H

Harsh Trivedi

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
 
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. :(
 
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 said:
Do you want 5 columns and only one with checkbox? Then see this:
http://msdn.microsoft.com/library/d...frlrfsystemwindowsformslistviewclasstopic.asp


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


Harsh said:
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. :(
 
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!!!
 
Back
Top