Thread ID: |
Created: |
Updated: |
Platform: |
Replies: |
16010 | Jul 2,2004 10:44 AM UTC | Jul 2,2004 12:59 PM UTC | WinForms | 1 |
![]() |
Tags: GridControl |
Dim cm as Currencymanager = CType(Me.BindingContext(me.Grid.DataSource, me.Grid.DataMember), CurrencyManager)
dim dv as DataView = CType(cm.List, DataView)
Then you can loop through the DataView to find the position of the barcode. Then to get the grid rowindex and select the row, you can use code like
Dim rowIndex as integer = me.grid.Binder.PositionToRowIndex(position)
me.grid.ScrollCellInView(rowIndex, 1)
me.grid.Selections.Add(GridRangeInfo.Row(rowIndex))
This post will be permanently deleted. Are you sure you want to continue?
Sorry, An error occured while processing your request. Please try again later.
This page will automatically be redirected to the sign-in page in 10 seconds.