private void FillDataGrid() { string ConString = ConfigurationManager.ConnectionStrings["ConString"].ConnectionString; string CmdString = string.Empty; using (SqlConnection con = new SqlConnection(ConString)) { CmdString = "SELECT CJ96ORIG_AGCY, CJ96TCN, CJ96TCR, CJ96_STATUS, CJ96_FBI_NUM, CJ96NOTIFICATIONS_SENT FROM cj96TBRisc"; SqlCommand cmd = new SqlCommand(CmdString, con); SqlDataAdapter sda = new SqlDataAdapter(cmd); DataTable dt = new DataTable("cj96"); sda.Fill(dt); grdRISC.ItemsSource = dt.DefaultView; } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)