Hi to all,
I would use same format to edit column and visual column for percent value
I'm using formatstring "{0:P2}" to show percent value correctly (value passed by object is for example 0.06), this formatstring show me 6%, OK!
But when I edit cell it shows me 0.06, are ther a way to edit value "6%", keeping 0.06 into my object?
Then my data is 0.06, it shows 6 %, I enter in edit mode and It should show me "6" or "6 %" (masked? I don't know),
I enter 6.5 %, and it store in my data 0.065
Is it possible?
01.Dim _Column As New GridViewDecimalColumn()02. 03._Column.AutoSizeMode = BestFitColumnMode.AllCells04._Column.HeaderText = "Percentage"05._Column.FieldName = "Discount"06._Column.Name = "Perc01"07._Column.Width = 10008._Column.FormatString = "{0:P2}"09._Column.DecimalPlaces = 210._Column.ThousandsSeparator = False11. 12.Columns.Add(_Column)