Advertise with us

Radiobutton value show in datagridview

when I click any cell data load from access db how I can get radiobutton values from access db

textBox1.Text =dataGridView1.CurrentRow.Cells[1].Value.ToString();
 textBox2.Text =dataGridView1.CurrentRow.Cells[3].Value.ToString();
 comboBox1 .Text =dataGridView1.CurrentRow.Cells[4].Value.ToString();
 dateTimePicker1.Text= dataGridView1.CurrentRow.Cells[8].Value.ToString();

its works example I want show gender from database to radiobutton

Last updated:8/19/2014 3:30:43 AM

1 Answers

Pravesh Singh
Pravesh Singh

Hi Chintoo,

YourRadioButton.Checked = Convert.ToBoolean(YourDataGridview.CurrentRow.Cells[YourBooleanCellID].Value);