Skip to Content
author's profile photo Former Member
Former Member

grid column header click event

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 😊

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • Best Answer
    Posted on Jun 15, 2008 at 11:12 AM

    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

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jun 13, 2008 at 12:18 PM

    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?

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.