When my datagrid loads, the newrow row is not showing. It only shows after I click on one of the headers. After that it works fine, and correctly adds new records. I'm using the express 2008.2 version. Here's my current code:
<igDP:XamDataGrid.FieldLayoutSettings>
<igDP:FieldLayoutSettings AllowAddNew="True" AllowDelete="True" SummaryDescriptionVisibility="Collapsed" AutoGenerateFields="False" HighlightAlternateRecords="True" GroupBySummaryDisplayMode="Default" AddNewRecordLocation="OnBottom" />
</igDP:XamDataGrid.FieldLayoutSettings>
Hello,
I suggest using collections that implement IEditableCollectionView Interface. Here is an article about them: http://msdn.microsoft.com/en-us/library/system.componentmodel.ieditablecollectionview.aspx
and
http://blogs.msdn.com/vinsibal/archive/2008/05/20/wpf-3-5-sp1-feature-ieditablecollectionview.aspx
Using that I think there should be no problem in showing a blank grid with the AddNewRow indicator visible.
Alex.
I tried your sample. The first time when I load the window, nothing shows up. Once I click on the button, the data is available and everything works fine.
What my requirement is that I need to show up a blank grid (with an empty bindinglist object) with the Add New Row, so that the user can start adding records to the grid. I am facing problem that in such scenarios, the grid is blank without the Add New Row.
Any suggestions will be appreciated.
It is really odd that it does not work correctly ( especially with ObservableCollections ) and probably it is due to the way of binding. I have attached project with simple binding. Please take a look at it and notify us if this solution can be of some help to you.