Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
590
Add New Row Problem
posted

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! 

 

 

 

 

 

 

Parents
No Data
Reply
  • 7694
    posted

     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.

Children