Quantcast
Channel: Windows Forms General forum
Viewing all articles
Browse latest Browse all 12583

Bind IList to DataGridViewComboBoxCell

$
0
0

Hi,

I'm trying to display data on datagridview from an IList<T>. Also, there are couple DataGridViewComboBoxCell in the gridview. When I bind IList to gridview, it picksup simple data type values. Also, I'm binding another list to each DataGridViewComboBoxCell in DataBindingComplete event for all rows at once. Everythiing works okay. However, DataBindingComplete event fires when add an item to data source IList<T>, which is causing unnecessary looping more than once on the same records. How do I bind list to newly added records only or do binding once for all rows.

It would be nice if datagridview pickups list items as well for combocells.

Thanks in advance.


Viewing all articles
Browse latest Browse all 12583

Trending Articles



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