Get Datagridview Dropdown Column Values

Selected Text

string SelectedText = Convert.ToString((DataGridView1.Rows[0].Cells["cbo"] as DataGridViewComboBoxCell).FormattedValue.ToString());

Selected Value

int SelectedVal = Convert.ToInt32(DataGridView1.Rows[0].Cells["cbo"].Value);

Get Free Email Updates!

Signup now and receive free offers, discounts & coupon codes

I will never give away, trade or sell your email address. You can unsubscribe at any time.

Leave a Reply

Your email address will not be published. Required fields are marked *

CommentLuv badge