private void frmFind_Load(object sender, EventArgs e) { DataSet ds = new DataSet(); string sql = "SELECT cuccd,cucna FROM incoun"; using (SqlConnection connection = ConnectionManager.GetConnection()) { SqlCommand command = new SqlCommand(sql, connection); SqlDataAdapter adp = new SqlDataAdapter(command); adp.Fill(ds,"INCOUN"); dataGridView1.AutoGenerateColumns = false; dataGridView1.DataSource = ds.Tables["incoun"]; } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)