MondeoST24
Member
- Joined
- Mar 9, 2006
- Messages
- 16
- Programming Experience
- Beginner
Hi,
Got this column in a DataGridView - I want to display a percentage with 2 decimal places 4.56% etc
The problem here is if the user enters 10 the grid shows 1000.00%, I want the user to enter the exact percentage not the decimal equivilent.
How can I do that?
Thanks
Got this column in a DataGridView - I want to display a percentage with 2 decimal places 4.56% etc
The problem here is if the user enters 10 the grid shows 1000.00%, I want the user to enter the exact percentage not the decimal equivilent.
How can I do that?
Thanks
VB.NET:
colDiscount1.DefaultCellStyle.Format = "p2"
colDiscount1.DefaultCellStyle.NullValue = "0.00%"
dgVehicles.Columns.Add(colDiscount1)