I'm hoping to find a simple way to convert an entire column in my datagridview
from a string
data type to a decimal
. Something simple like this maybe?
DataGridView1.Columns(4).ValueType = Decimal
You can use the function typeof()
. Like this:
DataGridView1.Columns(4).ValueType = typeof(Decimal);