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
1650
AddRow invisible if underlying list is empty
posted

Hi there

I have a grid in which I try to display an "AddRow" to create new items for the bound list (which implements all the necessary interfaces - it's an LLBLGen collection). However, the row is initially invisible, and only becomes visible once I click on one of the headers in order to change the sort order. I guess I can't turn that into a feature when it comes to my customers, so a workaround was greatly appreciated ;)

Oh yes: The bug only appears if the bound collection is empty. If there are already some records, the AddRow is visible right from the start.

Cheers,

Philipp

Parents
  • 145
    Offline posted

    I encountered the same problem. I added the following code right after the binding is done, and it solved the problem :

    MyGrid.FieldLayoutSettings.ResetAllowAddNew();
    MyGrid.FieldLayoutSettings.AllowAddNew =
    true;

    Obviously, there is a bug! Meanwhile, that's the workaround I found to solve the problem.

     

Reply Children
No Data