Home > DeveloperSection > Forums > Radiobutton value show in datagridview
Chintoo Semi

Total Post:135

Posted on    August-19-2014 3:07 AM

 C# C# 

 1 Reply(s)
 1106  View(s)
Rate this:

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

Pravesh Singh

Total Post:412

Posted on    August-19-2014 3:30 AM

Hi Chintoo,

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

Don't want to miss updates? Please click the below button!

Follow MindStick