R
roger
This is maddening...
Got a DataGrid with a DataTable as the DataSource.
The DataTable in question has default values for
some of the columns, such that if I add a new row
to the grid, some of the fields are filled with the
default value and some with null.
So far so good.
Except that if I make no other change to the new row,
and then call GetChanges on the table, there aren't any.
I also tried GetChanges(DataRowState.Added), but that
didn't see the new row either.
Seems I have to actually edit one of the cells before
DataGrid believes that I've added a row.
So what - there's no way to create a new row full of
all the default values using DataGrid?
It's only a minor problem, just one more annoyance...
Got a DataGrid with a DataTable as the DataSource.
The DataTable in question has default values for
some of the columns, such that if I add a new row
to the grid, some of the fields are filled with the
default value and some with null.
So far so good.
Except that if I make no other change to the new row,
and then call GetChanges on the table, there aren't any.
I also tried GetChanges(DataRowState.Added), but that
didn't see the new row either.
Seems I have to actually edit one of the cells before
DataGrid believes that I've added a row.
So what - there's no way to create a new row full of
all the default values using DataGrid?
It's only a minor problem, just one more annoyance...