The following code is causing an 'invalid property value' error when the form is loaded. If the line for the checkbox is commented out the code works fine. I am simply wanting to copy the values from the DataGrid to the form for editing.
.txtCode.Text = DataGrid1.Columns(0).Text
.txtCode.Locked = True
.txtDescription.Text = DataGrid1.Columns(1).Text
.chkWhsle.Value = DataGrid1.Columns(2).Value
.txtPrice.Text = DataGrid1.Columns(3).Text
I have noticed that if the value is -1 if the check box is checked while a 0 is in the field for unchecked.
Thank you in advance,