Hello, I would like to enquire on the scenario as per title. I have already managed to set the values, just that the grid didn't display these values to the user. In other words, when I click "Click here to add new row", the fields are displayed as all blank (or for int column, the value is 0). But my codes do work at the back end - if the user press enter without modifying anything, the custom values I set will be added to the database. So how can I let the user see the custom default values upon clicking "Click here to add new row"? Below is the code I have, which work perfectly back-end, but didn't display to user.
private
void
GridCommsItem_OnPreparingCellForEdit(
object
sender, GridViewPreparingCellForEditEventArgs e)
{
((CommsItem)e.Row.DataContext).Status =
"Store"
;
((CommsItem)e.Row.DataContext).Quantity = 1;
}