2
Answers

Putting radio button in dataGrid view

Photo of Kiran Karale

Kiran Karale

13y
5.2k
1
Hi,

I want to  how to create/add the radion button in the data grid view(c# Windows application) ,
& show in a Datagrid Column
Suggest me how can i do it.

Answers (2)

1
Photo of Sam Hobbs
NA 28.7k 1.3m 13y
Look for articles in this web site.

Look at the samples in the MSDN.

Generate a Windows Forms application and put a DataGridView in the form. Then look at the Designer.cs file for the form; you will have a useful sample.
0
Photo of Priya Linge
NA 5k 708.3k 13y
Hi,

Follwing way we can create DataGridView dynamicaly,

 string query = "select * from Customer";
            sqlConnection.Open();
            sqlCommand = new SqlCommand(query, sqlConnection);
            da = new SqlDataAdapter(sqlCommand);
            ds = new DataSet();
            da.Fill(ds);
            DataGridView myDataGrid = new DataGridView();
            myDataGrid.DataSource = ds.Tables[0];
            myDataGrid.Show();
            panel1.Controls.Add(myDataGrid);

Hope this will help you.

Thanks.