We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

Get current record in grid

(1) How do I get the current record (index) in a grid? (2) How do I look up a field value in the grid? i.e. I want to see the column 3 (Last Name) for the 4th record. Thanks, Dan

4 Replies

AD Administrator Syncfusion Team August 8, 2005 07:39 PM UTC

What kind of grid are you using? A GridDataBoundGrid or a GridGroupingControl (or a GridControl)?


DC dan carr August 8, 2005 07:41 PM UTC

Data Bound grid. Found: (Me.grdSecurityDetail.CurrentCell.ColIndex()) and (Me.grdSecurityDetail.CurrentCell.RowIndex()) to get the coordinates. Need a way to check the value


DC dan carr August 8, 2005 07:41 PM UTC

Sorry meant -- GridDataBoundGrid


AD Administrator Syncfusion Team August 8, 2005 07:52 PM UTC

You can get the at a particular row and col using Dim val as Object = me.grid(rowIndex, colIndex).CellValue)

Loader.
Up arrow icon