- private void button1_Click(object sender, EventArgs e)
- {
- String ConSql = "server=localhost;uid=root;pwd=123456;database=hhkj;port=3306";
- String SqlStr = "SELECT ID,name,A1,A2,time FROM MSG_REPORT";
- MySqlDataAdapter da = new MySqlDataAdapter(SqlStr,ConSql);
- DataSet ds = new DataSet();
- da.Fill(ds);
- c1FlexGrid1.DataSource = ds.Tables[0];
- }
- private void button2_Click(object sender, EventArgs e)
- {
- //此处添加清除代码,只清除表格中的数据,不清楚页头和格式信息
- }
复制代码
这个要怎么做?求大神解答,百度的答案不管用 |
|