Forum Xamarin.Forms

Binding in code

ysteinSelbekkysteinSelbekk NOMember, University

Hi, in this documentation https://documentation.devexpress.com/#Xamarin/clsDevExpressMobileDataGridTemplateColumntopic there are example code for binding using devexpress gridcontrol. In the Xaml:MainPage.xaml tab could someone explain this binding:


and how to do this in code?
I have tried the following:


but I keep getting this error:


Best Answer

Answers

  • ysteinSelbekkysteinSelbekk NOMember, University

    Thanks for the quick answer.

  • ysteinSelbekkysteinSelbekk NOMember, University

    Finally figured it out :) The following link had close to what I was after https://devexpress.com/Support/Center/Question/Details/T256582

    I ended up with this:


    Where CustomerListItemView inherits StackLayout (I changed from using Grid to StackLayout)
    which has the following constructor++


Sign In or Register to comment.