on 06-13-2008 11:24 AM
Hi Guys
I have a grid, one of its columns is of type CheckBox. What I wanted was to check all these check boxes whenever the user clicks on the header of this column. Any idea of how to catch these click event?
Just for the record, my code is structured in an "add on wizard" fashion.
David I rely on you
Hi Genc,
i was on holiday this friday and petr answered it
anyway, i provide you a vb6 code snippet from petr's solution. i would to it the same way like he said it:
if pval.EventType = et_CLICK and pval.ItemUID = "gridUID" and pval.Coluid = "colUID" and pval.row = 0 then
'now loop through the grid and check the columns
for i=1 to oGrid.Rows.Count
if you need something else ask
lg David
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Im working with matrixes, but I hope its the same. Click on first row (header) is row with index 0. This you can catch from item event (click event and pval.row).
Then you should go through all rows and set the checkbox to requested value.
Is it clear?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
94 | |
11 | |
11 | |
6 | |
6 | |
4 | |
3 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.