private System.Windows.Forms.DataGridViewTextBoxColumn colText = new DataGridViewTextBoxColumn(); private System.Windows.Forms.DataGridViewCheckBoxColumn colCheckBox = new DataGridViewCheckBoxColumn();
dataGridView1.Columns.AddRange(new DataGridViewColumn[] { colCheckBox, colText }); colCheckBox.HeaderText = "Check"; colText.HeaderText = "Amount";
string cnd = "select name from fees_master"; MySqlDataAdapter da = new MySqlDataAdapter(cnd, connection); connection.Open(); DataSet ds = new DataSet(); da.Fill(ds, "course_master"); dataGridView1.DataSource = ds.Tables["course_master"]; connection.Close();
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)