private void menuItem3_Click(object sender, System.EventArgs e) { Dg edu = new Dg("Initial Catalog=CodeGen;Data Source=localhost;Integrated Security=SSPI;"); DataTable dt; dt = edu.GetSPList("Initial Catalog=CodeGen;Data Source=localhost;Integrated Security=SSPI;"); }
private void button1_Click(object sender, System.EventArgs e) { DataTable dt; this.richTextBox1.Clear(); connectionstring = "Initial Catalog=CodeGen;Data Source=localhost;Integrated Security=SSPI;"; Dg myDG = new Dg(connectionstring); dt = myDG.GetSPList(connectionstring); this.dataGrid1.DataSource = dt; }