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
132
How to select a "select All" checkbox,which is the first column header in the ultragrid
posted

Hi,

 Thanks in advance.

I am using qtp.In my application there is a ultragrid which has the first column as checkbox.Every row has the checkbox.

There is a check box in the column header.If I select it the checkboxes in all the rows would get selected.

I tried to reach the "Select All" checkbox with setcelldata(0,0,true).But this checks the check box of first row and not the column header.

How do I select the column header check box.Please help me and this is emergent .

 Thanks you very much.

Ram priya

  • 469350
    Offline posted

    Hi Ra, 

        UltraWinGrid does not have any functionality built-in to put a checkbox in the header of a column. You must be doing this with a CreationFilter. I think there is a sample of this in the Infragistics KnowledgeBase.

        So since this is extended functionality, I'm afraid I really can't tell you how you can modify the value of this checkbox. You will need to determine where you application is storing this information. My guess would be the Tag property on the column or maybe the column header. You could set this value and then call grid.DisplayLayout.UIElement.VerifyChildElements to get the CreationFilter to re-trigger. And then you would have to call the routin in your code that selects or unselects the rows.