Skip to content
This repository has been archived by the owner on Mar 3, 2020. It is now read-only.

Commit

Permalink
1
Browse files Browse the repository at this point in the history
1
  • Loading branch information
mozhu1024 committed Apr 5, 2016
1 parent f745202 commit 57555ac
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
9 changes: 9 additions & 0 deletions vMysqlMonitoring/MysqlMonitoring.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions vMysqlMonitoring/MysqlMonitoring.cs
Original file line number Diff line number Diff line change
Expand Up @@ -95,11 +95,13 @@ private void button2_Click(object sender, EventArgs e)
Bs = new BindingSource();
Bs.DataSource = view1;
dataGridView1.DataSource = Bs;
dataGridView1.AutoSizeRowsMode = DataGridViewAutoSizeRowsMode.DisplayedCellsExceptHeaders;
txt_count.Text = "行数:" + Bs.Count;
dataGridView1.Columns[0].HeaderText = "时间";
dataGridView1.Columns[1].HeaderText = "语句";
dataGridView1.Columns[0].Width = 150;
dataGridView1.Columns[1].AutoSizeMode = DataGridViewAutoSizeColumnMode.Fill;
dataGridView1.FirstDisplayedScrollingRowIndex = this.dataGridView1.Rows.Count - 1;

}
catch (Exception)
Expand Down

0 comments on commit 57555ac

Please sign in to comment.