Quantcast
Viewing all articles
Browse latest Browse all 12583

How to add a new record to DataGridView columns having cells of different control types

I have 3 controls in my windows forms which are ListBox , button & datagridview control. 
ListBox is already populated with data. When the user clicks the button, the record selected in the ListBox needs to be entered into datagridview.

Here i am facing the problem.
The columns in datagridview are of types in the order shown below
 
DataGridViewTextBoxColumn , DataGridViewComboBoxColumn , DataGridViewButtonColumn

DataGridViewTextBoxColumn will contain the data selected from the ListBox.
DataGridViewComboBoxColumn & DataGridViewButtonColumn will be populated and shown every time the user adds a record from the ListBox control.

Can anybody suggest me the code, ways and alternatives to achieve this ?

Viewing all articles
Browse latest Browse all 12583

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>