I am completely unable to make work the datagridview using maskededit.
In above example I am getting error - "Object reference not set to an instance of an object."
Suggested by error to use new keyword.
I've tried several alternatives to the mask and do not feel the mask string is the issue.
edit:
I've found the issue. must use column Number, not column Name.
Howver, the mask does not display. ideas?
VB.NET:
dgv1.Columns("BudgetDate").DefaultCellStyle.Format = "$#.00"
In above example I am getting error - "Object reference not set to an instance of an object."
Suggested by error to use new keyword.
I've tried several alternatives to the mask and do not feel the mask string is the issue.
edit:
I've found the issue. must use column Number, not column Name.
VB.NET:
dgv1.Columns("Column3").DefaultCellStyle.Format = "##/##/####"
Last edited: