Radiobutton value show in datagridview

Total Post:135

Points:947
C# 
C#
 1779  View(s)
Ratings:
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

  1. Post:412

    Points:2888
    Re: Radiobutton value show in datagridview

    Hi Chintoo,


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

      Modified On Apr-04-2018 05:58:28 AM

Answer