R
Richard Carpenter
I have a simple winform with a customers combobox, a "get orders"
button and an orders grid. Due to other requirements, I have
implemented the form to allow the user to select a customer from the
combobox and click the "get orders" button to refresh the gridview with
the selected customer's orders, via a GetDataByCustomerID stored
procedure.
The underlying Orders table includes, among others, three boolean
columns and one particular datetime column, all of which are set to NOT
NULL with default values. All of these columns have valid values
specified in the table, yet when I call the stored procedure to refresh
the grid, I get validation errors for those four columns and their data
does not display. The other columns display just fine.
As I mentioned, I'm getting this data from a stored procedure. The
stored procedure *does* return the values for those four columns. The
gridview for some reason sees those columns as having null values or
something.
I have completely deleted the form and recreated it. I have completely
deleted the dataset and recreated it. Neither had any effect. Each time
I redesigned it, the problem was present. Does the gridview have issues
with required values? Even if it did, shouldn't using a stored
procedure get around that?
I'm running out of things to try here. Any advice would be much
appreciated.
Rich
button and an orders grid. Due to other requirements, I have
implemented the form to allow the user to select a customer from the
combobox and click the "get orders" button to refresh the gridview with
the selected customer's orders, via a GetDataByCustomerID stored
procedure.
The underlying Orders table includes, among others, three boolean
columns and one particular datetime column, all of which are set to NOT
NULL with default values. All of these columns have valid values
specified in the table, yet when I call the stored procedure to refresh
the grid, I get validation errors for those four columns and their data
does not display. The other columns display just fine.
As I mentioned, I'm getting this data from a stored procedure. The
stored procedure *does* return the values for those four columns. The
gridview for some reason sees those columns as having null values or
something.
I have completely deleted the form and recreated it. I have completely
deleted the dataset and recreated it. Neither had any effect. Each time
I redesigned it, the problem was present. Does the gridview have issues
with required values? Even if it did, shouldn't using a stored
procedure get around that?
I'm running out of things to try here. Any advice would be much
appreciated.
Rich