1个回答
展开全部
private System.Windows.Forms.DataGridView dataGridView1;
private System.Windows.Forms.DataGridViewTextBoxColumn Column1;
private System.Windows.Forms.DataGridViewTextBoxColumn Column2;
private System.Windows.Forms.DataGridViewTextBoxColumn Column3;
private System.Windows.Forms.TrackBar trackBar1;
private System.Windows.Forms.Button button1;
{
this.dataGridView1.Rows.Add();
}
private void dataGridView1_RowsAdded(object sender, DataGridViewRowsAddedEventArgs e)
{
RowsChanged();
}
private void RowsChanged()
{
this.trackBar1.SetRange(0, this.dataGridView1.Rows.Count);
}
private void dataGridView1_RowsRemoved(object sender, DataGridViewRowsRemovedEventArgs e)
{
RowsChanged();
}
private System.Windows.Forms.DataGridViewTextBoxColumn Column1;
private System.Windows.Forms.DataGridViewTextBoxColumn Column2;
private System.Windows.Forms.DataGridViewTextBoxColumn Column3;
private System.Windows.Forms.TrackBar trackBar1;
private System.Windows.Forms.Button button1;
{
this.dataGridView1.Rows.Add();
}
private void dataGridView1_RowsAdded(object sender, DataGridViewRowsAddedEventArgs e)
{
RowsChanged();
}
private void RowsChanged()
{
this.trackBar1.SetRange(0, this.dataGridView1.Rows.Count);
}
private void dataGridView1_RowsRemoved(object sender, DataGridViewRowsRemovedEventArgs e)
{
RowsChanged();
}
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询