Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Shaun E on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

DataGrid Sorting Problem

Status
Not open for further replies.

ronnetp

Programmer
Apr 8, 2002
71
I have the following code to get the value of the row selected by the user on the Datagrid double click event, it works fine, but I have a problem when the user sorts the grid to something different than the default sort.
Any Advice will be much appreciated.

Dim s As String
Dim line As Integer
line = profilegrid.CurrentRowIndex
s = CType(ds.Tables("bettormain").Rows(line).Item("PIN"), String)
MsgBox(s)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top