Mình muốn lấy ra giá trị của nhưng ô có giá trị duy nhất trong gridview?
lấy giá trị khi click vào gridview cell[0]: là lấy ở cột 0Code:private void gv_khachhang_CellContentClick(object sender, DataGridViewCellEventArgs e) { int dong = e.RowIndex; try { tb_makh.Text = gv_khachhang.Rows[dong].Cells[0].Value.ToString(); this.Close(); } catch { MessageBox.Show("Chọn Ô Có Giá Trị"); } }