Hi,
I have the same problem in my grid as outlined in this thread...
http://forums.infragistics.com/forums/t/17008.aspx
My grid was working fine until I got the latest version 8.2 and something broke in this version....
Can you suggest workaround for this please? After reading the above article I told my client to click on the header for now until I can give them a work around which is really not very professional.
I appreciate any help....
Thanks!
I have all of that already and I have been using this grid for over a year now and always worked fine before I downloaded the latest version 8.2.
I am not sure why it is having trouble diplaying the top row(new row with the + sign) when the collection is empty.
My datasource is a collection derived from IBindingList and when I have items in this collection it displays fine, but when there are no items in the collection meaning....
public class TestCollection : IBindingList<TestItem>
{
-------------------------------
}
TestCollection coll = new TestCollection();
myXamGrid.DataSource = coll;
this is when I cannot see the new row. If you cannot see the top row then there is no way user can add any items into the grid.
But if I add some items and then bind it to the grid the new row shows up fine.
My clients dont understand why it is not working now like it used to :( (I have just released an upgrade with 8.2)
I really need a solution for this problem. Any help is greatly appreciated....
Thanks.
Hello,
You can use the properties AllowAddNew and AddNewRecordLocation. Please take a look at the code below:
With XAML
<igDP:XamDataGrid.FieldLayoutSettings> <igDP:FieldLayoutSettings AllowAddNew="true" AddNewRecordLocation="OnTop"></igDP:FieldLayoutSettings> </igDP:XamDataGrid.FieldLayoutSettings>
Or programmatically with code behind:
private void button1_Click(object sender, RoutedEventArgs e) { xamDataGrid1.FieldLayoutSettings.AllowAddNew = true; xamDataGrid1.FieldLayoutSettings.AddNewRecordLocation = AddNewRecordLocation.OnTop; }
Hope this helps.