How to get values from selected cells DataGridView C#? -


how can get values selected cells datagridview c# ? not one

i need many 1 , selected save in db

in windows form

i want check every cell in first column , value "id"

this column combo box

you can use code

    datagridviewselectedcellcollection dgv = this.datagridview1.selectedcells;     (int = 0; <= dgv.count - 1; i++)     {         messagebox.show(dgv [i].value.tostring());     } 

Comments

Popular posts from this blog

php - mySql Join with 4 tables -

css - Text drops down with smaller window -

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -