RADIOBUTTON VALUE SHOW IN DATAGRIDVIEW

Chintoo Semi

Total Post:135

Points:947
Posted by  Chintoo Semi
C# 
C#
 1644  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. Pravesh Singh

    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

NEWSLETTER

Enter your email address here always to be updated. We promise not to spam!