Quantcast
Channel: Windows Forms Data Controls and Databinding forum
Viewing all articles
Browse latest Browse all 2535

Make a datagridview field display as combobox?

$
0
0

I have a datagridview that is displaying data from a sql query.  I think that is called "databound" using binding source.  Problem is that I would like to allow the user to make changes or add data.  One of the fields should display as a combobox to limit the choices.  Is there a way that I can make a certain field a combobox (change the way it looks)?  or is that pretty much locked when the grid is databound?  

If not, is the approach to build the dgv (columns.add) etc.  Then, open the sql with a reader and while thru the reader to load the data into the dgv.  Then, when the user is finished while thru the dgv and either update or insert the data?  


Viewing all articles
Browse latest Browse all 2535

Trending Articles



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