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
440
Custom style xamGrid work like asp.net DataList
posted

Is there a way to custom xamGrid so it work like the ASP.NET data Data List Control.

I need one custom item per row. Item will have a custom style which some information such as picture, description, resolution day ...

Please help.

  • 40030
    Offline posted

    Hi, 

    You can create one  TemplateColumn with at Star width, so that it fills the entire width of the control. 

    Then you can use value converters and bindings to customize what shows up in the row:

    <ig:XamGrid AutoGenerateColumns="false">

    <ig;XamGrid.Columns>
          <ig:TemplateColumn key="BoundProperty">
              <ig:TemplateColumn.DataTemplate>
                          ...Template goes here
              </ig:TemplateColumn.DataTemplate> 
         </ig:TemplateColumn>
    </ig:XamGrid.Columns>
    </Ig:XamGrid>

    Hope this helps,

    -SteveZ