Checked Item collection

Posted by: pgmer on 8 September 2017, 2:37 pm EST

  • Posted 8 September 2017, 2:37 pm EST

    Hi, I am new to this forum...


    I have farpoint grid control on windows form. for one column cell  type is checkbox. i would like to get the collections of all the checked items.


    one way is to loops trough all the items.. as items are in more number i dont want to loop.


    how will i get the collection of checked items?


    Thank you all..

  • Replied 8 September 2017, 2:37 pm EST

    Hi,

    There are several ways to get the data from a whole column at once.  You can use GetClip, or GetClipValue, to get the values in a formatted string like Spread would put on the clipboard for a copy or cut (tab delimited string with cr/lf delmiting rows), or you can use GetArray to get the values into an array --  this one is probably more suited for your task.

  • Replied 8 September 2017, 2:37 pm EST

    Hi seanl


    Thanks for ur response..


    getting all the items two array is nice idea.. Getarray method will return data to twodimentional array object.


    again there is no method to filter the records in array to get the desired collection of data..


    is there any other method?


    Thank you.

  • Replied 8 September 2017, 2:37 pm EST

    Hello,

    Here as we only need selective items( checked items) the best possible way would be to loop through them and check the value one by one.

     

    Thanks,

     

     

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels