I have a datagridview on a windows form in vb.net. In one or more columns I want the text to be limited to numbers, including negative signs and one decimal point. I have the column property "format" set to 3 digit numbers, but I can still enter any text I want. So what is the trick to get VB to use the property?
I used this with no change in the behavior. https://msdn.microsoft.com/en-us/library/f9x2790s(v=vs.110).aspx
I also tried this with no change in the behavior.
DataGridView1.Columns(2).DefaultCellStyle.Format = "N3"
from here: How to format numbers to 3 decimal place in datagridview using vb.net