Hi,
I have a xamDatagrid. The Data comes with a Binding to a DataTable. In this DataTable I have set the DefaultValue Property for each Column.
Now when I Click into the AddNew-Row the DefaultValue is shown as soon as I typ in a Value. But I would like to show the DefaultValues as soon as I click into the AddNew-Row.
Is there any solution for this?
Hello,
I am attaching a small sample with this functionality. What you need to do is switch the value of the underlying editor so that the new object can be created right away.
Thank you for the solution. But it doesn't work for me.
I have a DataTable as DataSource of the Grid. And in this DataTable i've set the DefaultValue for each Column.
When I Add the Code for EditModeStarted nothing happens. (The code executes but the DefaultValue is not shown).
So there is a Difference for the Grid between the DefaultValue set in a bindet DataTable and the Value you set in the constructor of your Class for the BindingList.
Is there a posibility to achiev that behavior with a bound DataTable?