Thread ID: |
Created: |
Updated: |
Platform: |
Replies: |
9447 | Dec 18,2003 07:43 AM UTC | Dec 18,2003 09:51 AM UTC | WinForms | 1 |
![]() |
Tags: GridControl |
private void PopulateRow(int row, string[] strArray) { //make sure you don''t exceed grid or array bounds int count = strArray.GetLength(0); if(count >= this.gridControl1.ColCount) count = this.gridControl1.ColCount - 1; if(count > 0) { GridData data = this.gridControl1.Data; for(int i = 0; i < count; ++i) { GridStyleInfo style = new GridStyleInfo(); style.CellValue = strArray[i]; data[row, i + 1] = style.Store; } } }
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.