Thread ID: |
Created: |
Updated: |
Platform: |
Replies: |
24115 | Jan 28,2005 09:07 AM UTC | Jan 29,2005 06:21 AM UTC | WinForms | 3 |
![]() |
Tags: GridControl |
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);
This post will be permanently deleted. Are you sure you want to continue?
Sorry, An error occured while processing your request. Please try again later.
This page will automatically be redirected to the sign-in page in 10 seconds.