September 3rd, 2012, 09:46 AM
I have a button on click event I have the following code;
At runtime, when I select the items from th edropdownlist combo box and click the button the datagridview is not populated.. Why?
Private Sub BtnChk_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles BtnChk.Click
If CmbTruckTyp.SelectedItem.ToString = "Daf" And cmbDafModels.SelectedItem.ToString = "Daf cf85" And CmbCategory.SelectedItem.ToString = "Filters" Then
'TODO: This line of code loads data into the 'ProductDetails.QryProductDetails' table. You can move, or remove it, as needed.
September 3rd, 2012, 11:57 PM
Re: Button Click
Put a break on the "If" statement and look at all the different values for the combobox control properties (very interesting). I usually just use the cb.text property unless the selected item is different than the text.
Click Here to Expand Forum to Full Width