Thread ID: |
Created: |
Updated: |
Platform: |
Replies: |
22291 | Dec 9,2004 12:30 AM UTC | Dec 10,2004 07:38 AM UTC | WinForms | 5 |
![]() |
Tags: GridControl |
grid1.DataSource = datatable1;
Once you do this, you could loop 1-1000 and add a DataRow at the to datatable1. Then this would make the rows appear one at the time in the grid. But they get added to the datatable, not to the grid.
If you want to simulate adding rows to teh grid, you can handle the grid.Model.QueryRowCount event. In the event, set e.Count = this.MyRowCount;. In formLoad, set this.MyRowCount = 1 (or whatever number of rows you want to see in the grid initially.) After setting MyRowCount, make sure you call grid.Model.ResetVolatileData. Then in teh loop where you want to start showing more rows, increment MyRowCount, and call grid.Model.ResetVolatiledata. 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.