Dear All,
Greetings of the day.
I am working on a C# WinApp and I have a WinForm that contains a ComboBox and a DataGridView. I have write code that when I press Enter key on an item of the combobox that items shows in the gridview. but it shows the same item twice with one blank row.
Apart from this there is code for remove a row from the datagridview, it works but, when click on the blank row it throws an error.
please see the screen shots attached to see both the code and result.
Please help me to correct where I am mistaking. I want to get the code rectified that when I press enter on an item from the combobox, the same item should be shown in the gridview only.
Thank You...
Mayank Jani
Amit GuptaPosted Nov 27, 2017, 9:18 AM
Mayank JaniPosted Dec 11, 2017, 1:03 PM
dt.Rows.Add(cmbItems.SelectedText);
Amit GuptaPosted Dec 4, 2017, 4:37 PM
Mayank JaniPosted Dec 4, 2017, 12:18 PM
Amit GuptaPosted Dec 2, 2017, 3:33 AM
Mayank JaniPosted Dec 2, 2017, 12:30 AM
Amit GuptaPosted Nov 30, 2017, 6:30 PM
Mayank JaniPosted Nov 30, 2017, 12:43 PM
Amit GuptaPosted Nov 29, 2017, 2:41 PM
Mayank JaniPosted Nov 29, 2017, 1:24 PM
Mayank JaniPosted Nov 28, 2017, 1:14 AM