hi


i am using one function to populate a combo box with Name and corresponding ID using one class

Public Class ValueDescriptionPair
Public Value As Object
Public Description As String
Public Sub New(ByVal NewValue As Object, ByVal NewDescription As String)
Value = NewValue
Description = NewDescription
End Sub
Public Overrides Function ToString() As String
Return Description
End Function
End Class



in formload i entered the values like this

" For i = 0 To Ds.Tables(0).Rows.Count - 1

CmbParentGR.Items.Add(New ValueDescriptionPair(Ds.Tables(0).Rows(i).Item(0), Ds.Tables(0).Rows(i).Item(1)))

Next "


And I can get its ID and NAME while selecting the name from combobox
using that i used to store only ID. While editing I want to show the NAME corresponding to that ID.........????????
Because I saving id only. And conbobox is already populated with all data