FreeriderUK
Well-known member
I want to update a field in SQL database to hold a NULL value.
I can do this using a DataGridView control, with the code:
Which works fine, but I don't need the DataGridView on the form.
I could hide it behind another control, but seems a bit messy.
How can I achieve the same thing but without having to use a DataGridView?
The field in question holds a Date value displayed in a TextBox - if that makes any difference.
Probably posted in wrong section...
I can do this using a DataGridView control, with the code:
VB.NET:
OrdersDataGridView.CurrentRow.Cells(0).Value = DBNull.Value
I could hide it behind another control, but seems a bit messy.
How can I achieve the same thing but without having to use a DataGridView?
The field in question holds a Date value displayed in a TextBox - if that makes any difference.
Probably posted in wrong section...