Checkbox in DataGrid

  • Thread starter Thread starter Mark Irvine
  • Start date Start date
M

Mark Irvine

Hi,

I need to be able to add two checkbox columns to a datagrid, but just can't
get it to work - I have also been unable to find any articles to help. Can
anyone offer any assistance? Or suggest a third party control that would do
the same thing?

Mark
 
Mark said:
Hi,

I need to be able to add two checkbox columns to a datagrid, but just can't
get it to work - I have also been unable to find any articles to help. Can
anyone offer any assistance? Or suggest a third party control that would do
the same thing?

Mark

I ended up constructing my own grid control by extending OpenNETCF
OwnerDrawnList. I basically added cells to each row that get paint and
click calls independently.
I had to use two images for a simulated checkbox, swapping them when the
click event was handled, but it also made it easier to fit the custom
L&F I needed.
The only real problem I had with it was running out of memory with large
datasets, but caching attributes for cells enabled much less memory waste.

--Paul
 
Back
Top