How can I have a selected item in a combobox display the entire row in a data gridview using vb.net.
victor0101
0
Newbie Poster
Recommended Answers
Jump to PostYou can assign the dataset/datatable as the DataGridView's DataSource and filter the results so that it shows only the selected record from the combobox.
Dim m_dtData as New DataTable m_dtData = FillDataTableCode DataGridView1.DataSource = m_dtData Private Sub Combobox1_SelectedIndexChanged() m_dtData.DefaultView.Filter = "ColumnName = 'Value'" End Sub
All 2 Replies
Reply to this topic
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.