Thread ID: |
Created: |
Updated: |
Platform: |
Replies: |
13182 | Apr 22,2004 02:35 AM UTC | Apr 22,2004 06:39 AM UTC | WinForms | 1 |
![]() |
Tags: GridControl |
//grid is a GridControl
this.grid[2,2].Format = "#.00";
this.grid[2,2].CellValueType = typeof(double);
//grid is a GridDataBoundGrid
this.grid.Binder.InternalColumns[2].StyleInfo.Format = "#.00";
this.grid.Binder.InternalColumns[2].StyleInfo.CellValueType = typeof(double);
If you have added GridBoundColumns, then use those instead of the Binde.InternalColumns member.
TextAligned is used to place text in relation to buttons. To set the cell''s horizontal alignment, use the HorizontalAlignment property instead.
Two things on the float cells, you also need to set the grid''s FloatCellsMode property, maybe
this.gridControl1.FloatCellsMode = Syncfusion.Windows.Forms.Grid.GridFloatCellsMode.OnDemandCalculation;
and the adjacent cell must be empty. You cannot float over an occupied cell. 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.