Hey
New to VB.NET. Linked listbox to a table in sqlserver. When the user clicks on an item I am trying to pull the valuemember associated with the record in the dataset and assign it a variable so I can use this as criteria in a search. Keep getting error about can't cast DataRowView to an integer. It doesn't like integer or string variables. Here's my code. Help. Thanks in advance.
strClientCode = (lstClient.ItemslstClient.DisplayMember)
New to VB.NET. Linked listbox to a table in sqlserver. When the user clicks on an item I am trying to pull the valuemember associated with the record in the dataset and assign it a variable so I can use this as criteria in a search. Keep getting error about can't cast DataRowView to an integer. It doesn't like integer or string variables. Here's my code. Help. Thanks in advance.
strClientCode = (lstClient.ItemslstClient.DisplayMember)