hi, i am writing a test script on a application that uses this grid. i want to pass a value and then find that value on the grid. any idea how i do this? it’s kinda like my function is parametized so whatever i put in the parameter will be searched in the grid.
hope you can help me.
Imported from legacy forums. Posted by amberrv (had 2803 views)
Try this (untested code):<code>Dim row As Xceed.Grid.DataRow Dim cell As Xceed.Grid.DataCell For Each row In grid.DataRows For Each cell In row.Cells Dim value As Object = cell.Value If value = valueToSearch Then ‘ found the value End If Next Next</code>
Imported from legacy forums. Posted by Tommy (had 3879 views)