Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
520
How to set max value of UltraGridColumn using ColumnStyle.Double
posted

 

I have an UltraGrid bound to a DataTable with an Amount column of type double.

I have set the Column.Style to Double in addition to other properties.

col.Header.Caption = "Value";

col.SortIndicator = SortIndicator.Ascending;

col.Width = 150;

col.CellClickAction = AllowEdit ? CellClickAction.Edit : CellClickAction.RowSelect;

col.CellAppearance.BackColor = AllowEdit ? Color.LightYellow : _defGridBackColor;

col.Style = Infragistics.Win.UltraWinGrid.ColumnStyle.Double;

col.Nullable = Infragistics.Win.UltraWinGrid.Nullable.Disallow;

col.MaxLength = 20;

col.MaxValue = 1000000000000;

col.Format = "###,###,###,##0.#0";

col.PromptChar = '\0';

col.NullText = "None";

 

 

However, I am only able to enter a max value of 100,000,000.00 in the

column via the editor.

Setting MaxValue to say, 1 trillion, has no effect.

I can enter more than 100M if I set the MaskInput property.

I wanted to know if there is another  way of accomplishing this? 

MaskInput, for one, shows thousands placeholders, which I don't want.