Hi!I have a problem with the addnew function in the XamlGrid. If I have a datasource that is a BindingList, and the BindingList contains items, the addnew row is displayed correctly. But if the datasource doesn't contain any items, the addnew row is hidden, and will only show if I click on a column or make the grid redraw it self by clicking the mouse. Has any one had this problem, and maybe a solution?
Br
Christian Engel
I have the same issue with 8.2.
I have to click the column header to get the add new to appear.
I came up with toggle the field Visibility. That fixed my issue.. It's a hack, but it works. For the record I had a grid within a grid cell. It would only happen when I added a new record. The grid inside the cell would show, but no addnew button.
private void GridLog_RecordAdded(object sender, Infragistics.Windows.DataPresenter.Events.RecordAddedEventArgs e) {
Cell periodCell; Style cellStyle; CellValuePresenter cellPresenter; periodCell = e.Record.Cells["LogDepArrs"]; if (periodCell != null) { if (periodCell.Field.HasSettings) { cellStyle = periodCell.Field.Settings.CellValuePresenterStyle; if (cellStyle != null) { cellPresenter = CellValuePresenter.FromRecordAndField(periodCell.Record, periodCell.Field); cellPresenter.DataContext = null; cellPresenter.DataContext = e.Record; } } periodCell.Field.Visibility = Visibility.Hidden; periodCell.Field.Visibility = Visibility.Visible; }
}
Nothing Usefull.
I have the same issue did anybody get it resolved?
Hi,
I tried to reproduce your issue, but I couldn't succeed.The addnew row is displayed correctly in both the cases.I don't know what's wrong with your application. However, I have created and attached a sample applicationto help you in solving the issue.
Best Regards,Yanko