Thread ID: |
Created: |
Updated: |
Platform: |
Replies: |
22221 | Dec 7,2004 12:52 PM UTC | Dec 8,2004 12:56 PM UTC | WinForms | 4 |
![]() |
Tags: GridControl |
private void Form1_Load(object sender, System.EventArgs e) { DataTable dt = new DataTable("MyTable"); int nCols = 4; for(int i = 0; i < nCols; i++) dt.Columns.Add(new DataColumn(string.Format("Col{0}", i))); this.gridDataBoundGrid1.GridBoundColumns.Add(new GridBoundColumn()); this.gridDataBoundGrid1.GridBoundColumns[0].MappingName = "Col1"; this.gridDataBoundGrid1.GridBoundColumns[0].HeaderText ="Some text"; 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.