I need to get the selected rows from the grid so I can use them in the latter code.
Furthermore, is it possible to add a checkbox in first column ?Please let me know if It needs more explaination. Thank you
You can add checkbox to a gridcolumn under Miscellanous tab, this is only suggested for columns with true/false values.
By first column, I assume you mean the record index column. You can't add the checkbox there but you can add an additional column for the checkboxes
Hello SyedAkhtar,
You could extend the IDO, and add an unbound property, with the property type set to ListYesNoType. In this case, the column is named ubSelect.
In your grid, add the ubSelect property, with the component property "Check Box" = True.
In your formscript, you would interate the collection. If the ubSelect property is checked, do the needfull.I hope this helps.
Sub IterateGridAndProcessSelected()
Dim i As Integer Dim ocache As IWSIDOCollection
ocache = ThisForm.PrimaryIDOCollection
For i = 0 To ocache.GetNumEntries - 1 If ocache.GetObjectProperty("ubSelect",i) = "1"
'Do something
End If NextEnd Sub