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
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.
Thanks for the quick response Mike. Currently using 2007 volume 1, we will be switching to 2008 volume 3 pretty soon - so sounds like I'll need to use GetNAProperty. I'll talk to the dev for the control.
I've had some difficulty navigating the API documentation online for NetAdvantage to understand which properties I need to access in the API to match the particular cell/column/header in my Grid control. For example, I might know that I need to get a cell value or header property, but I have a difficult time translating that into the online documentation. Can you offer any guidance here? Would using a tool that I have seen mentioned on here such as the Windows Forms Spy help me understand this a little better?
Really appreciate your time,
James