DataGrid Filter

  • Thread starter Thread starter Uri Dimant
  • Start date Start date
U

Uri Dimant

Hello,friends!

I am trying to search for specific data into my data grid
I get my data selected but If I have a record at the end of a grid I cannot
see it unless i move scroll.
I dont do it with ..DefaultView.RowFilter because I would like to see all
my records.
With flex grid there were toprow where I can get selected row at the top of
the grid. Does anyone know how to do it with data grid?

With grid

Dim iRow As Integer

Dim myTable As DataTable

myTable = CType(.DataSource, DataTable)

For iRow = 0 To myTable.Rows.Count - 1

If iRow = 3 Then

..Select(9)

Exit For

End If

Next iRow

End With
 
dgPeople.CurrentRowIndex = 'Put the row number here and it will be selected
an viewable in the Grid



Regards - OHM
 
Thanks
One Handed Man said:
dgPeople.CurrentRowIndex = 'Put the row number here and it will be selected
an viewable in the Grid



Regards - OHM
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top