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
855
xamgrid binding data.
posted

what is the proper way to put data in a xamGrid and be able to change columns positions, and change any property of the columns thru the properties window. also be able to update, delete, add records to sql server.

I already bin a store procedure to xamgrid, but I'm no able to edit columns, or change the order of the columns because they are not in the column collection in the xamgrid.

thank you in advance for your help.

Parents
No Data
Reply
  • 21382
    Suggested Answer
    posted

    The XamGrid would bind to an IEnumerable of your data, so you would need to get your data into that form.  

     

    As for setting up your grid, you can do this at design time in Xaml, or at run.  

     

     

    If you are binding data to the grid, the columns will not be autogenerated until the Loaded event of the grid so you wouldn't see any columns if you set the datasource in say the constructor and immediately tried to modify it. 

Children