Hello,
I need to edit some percent values in a grid, each time I quit an edited cell the value is automaticaly divided by 100. Even if I don't edit anything, entering edit mode and quitting divide the value by 100.
Is there another way to edit percent values in a grid? I tried to attach an example but I can't, the forum doesn't accept archives, I put here the interresting code:
I need to edit some percent values in a grid, each time I quit an edited cell the value is automaticaly divided by 100. Even if I don't edit anything, entering edit mode and quitting divide the value by 100.
Is there another way to edit percent values in a grid? I tried to attach an example but I can't, the forum doesn't accept archives, I put here the interresting code:
public partial class Form1 : Form { public Form1() { InitializeComponent(); radGridView1.Columns.Add(NewPercentCol()); radGridView1.Rows.Add(15.51); radGridView1.Rows.Add(25.52); radGridView1.Rows.Add(35.53); } private GridViewMaskBoxColumn NewPercentCol() { return new GridViewMaskBoxColumn() { HeaderText = "Percent", Mask = "p", FormatString = "{0:p}", MaskType = MaskType.Numeric, TextAlignment = ContentAlignment.MiddleRight, Width = 300 }; } }
Thank you.