New Product Launch - BoldDesk !
Introducing help desk ticketing software.
New Product LaunchBoldDesk: Help desk ticketing software starts at $10 for 3 agents.
Try it for free.private void Form1_Load(object sender, System.EventArgs e) { this.gridControl1.ColCount = 7; this.gridControl1.RowCount = 5;//22; int h = this.gridControl1.RowHeights.GetTotal(0, this.gridControl1.Rows.HeaderCount) + 10 * this.gridControl1.DefaultRowHeight; this.gridControl1.ClientSize = new Size(this.gridControl1.ClientSize.Width, h); this.gridControl1.Model.Options.DisplayEmptyRows = true; }
>private void Form1_Load(object sender, System.EventArgs e) >{ > this.gridControl1.ColCount = 7; > this.gridControl1.RowCount = 5;//22; > int h = this.gridControl1.RowHeights.GetTotal(0, this.gridControl1.Rows.HeaderCount) > + 10 * this.gridControl1.DefaultRowHeight; > this.gridControl1.ClientSize = new Size(this.gridControl1.ClientSize.Width, h); > this.gridControl1.Model.Options.DisplayEmptyRows = true; >} >
gridControl1.RowCount = Math.Max(10, numberOfRowsInYourDataSource);