Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
330
How to get check box state of a grid table column header?
posted

The very first column, including the header, in my grid control has an embedded check box.  How do I get the state of whether or not this is checked, and how do I set the check box state?

Right now I am using DoubleClickHeader 0, "CheckedColumn" to get the mouse to move to the center of the column header.  Then I grab mouse coordinates and apply a mouse click.  However this is not a very good way long term, nor do I know if I am setting the check box, or removing a check state alread set.

Thanks

Parents
No Data
Reply
  • 7695
    Offline posted

    What version of NetAdvantage are you using?

       The reason I ask is prior to 9.1 to embed a checkbox into a header required you to alter the base functionality grid with at least a draw filter, but likely it was done with a creation filter. This level of modifications to the grid are not, and simply cannot be supported inherently in TestAdvantage. That being said, if you are using 9.1 or newer and utilizing the feature built in NetAdvantage 9.1 then there are two actions that you can use (SetColumnHeaderCheckState, GetColumnHeaderCheckState), otherwise you need to ask your developer where he saves the CheckState, as he created the customization, and then you should be able to use GetNAProperty to get the value.

Children