private void initGridControl() { SimTerrainType.loadTerrainTileTypes(); gridControl1.DataRows.Clear(); //setup our control grid gridControl1.DataSource = mTypesList; gridControl1.SingleClickEdit = true; // AddComboEditor(gridControl1.Columns, getColumWithName("TerrainGroup"), SimEditor.SimTerrainType.mValidGroupings.ToArray()); int count = SimTerrainType.mTerrainTileTypes.mTypes.Count; string[] values = new string[count]; for (int i = 0; i < count; i++) { values[i] = SimTerrainType.mTerrainTileTypes.mTypes[i].Name; } AddComboEditor(gridControl1.Columns, getColumWithName("TileType"), values); //load our thumbnail images gridControl1.Columns["Preview"].Width = thumnailRes; for (int i = 0; i < mTypesList.Count; i++) { string pureName = SimTerrainType.getpureFileNameNoExt(mTypesList[i].TextureName); string texName = CoreGlobals.getWorkPaths().mTerrainTexturesPath + @"\" + mTypesList[i].Theme + @"\" + pureName + "_df.tga"; Xceed.Grid.DataRow row = gridControl1.DataRows[i]; row.Cells["Preview"].BackgroundImage = TextureManager.loadTextureToThumbnail(texName, thumnailRes); row.Height = thumnailRes; } }