cancel
Showing results for 
Search instead for 
Did you mean: 

grid column header click event

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

Nussi
Active Contributor
0 Kudos

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

Answers (1)

Answers (1)

Former Member
0 Kudos

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?