private void kryptonDataGridView1_CellContentClick(object sender, DataGridViewCellEventArgs e) { string cn = Connection.ReadPath(); SqlConnection con = new SqlConnection(cn); SqlCommand com = new SqlCommand("select Name from Rice", con); DataSet ds = new DataSet(); SqlDataAdapter ad = new SqlDataAdapter(com); ad.Fill(ds,"Rice"); kryptonTextBox1.DataBindings.Add("Text", ds, "Rice.Name"); kryptonTextBox1.DataBindings.Add("Text", ds, "Rice.Price"); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)