Thread ID: |
Created: |
Updated: |
Platform: |
Replies: |
10123 | Jan 22,2004 04:48 PM UTC | Jan 22,2004 09:17 PM UTC | WinForms | 5 |
![]() |
Tags: GridControl |
DataTable dt = new DataTable("MyTable"); int nCols = 4; int nRows = 10; for(int i = 0; i < nCols; i++) dt.Columns.Add(new DataColumn(string.Format("Col{0}", i))); for(int i = 0; i < nRows; ++i) { DataRow dr = dt.NewRow(); for(int j = 0; j < nCols; j++) dr[j] = string.Format("row{0} col{1}", i, j); dt.Rows.Add(dr); } this.gridDataBoundGrid1.DataSource = dt;
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.