Setting Default Value for New Row

Oct 31, 2008 at 6:36 AM
When creating a new row on the grid, is there an event that can be used in order to insert default values for that row?  I would looking for an even like OnRowAdded or something of that sort.  Basically, I want to be able to set the first columns value to a value when a row is added.
Oct 31, 2008 at 1:28 PM
dataGrid.InitializingNewItem += new InitializingNewItemEventHandler(dataGrid_InitializingNewItem);

InitializingNewItemEventArgs e has e.NewItem where you can do your things

greets
Robert