Trying to add static conect for a columns all rows...

Hi,

I would like to a static content for one of my columns.
For ex.: the last column - all its rows should be a string value or an image value.
How can I do this or implement this? (sorry I'm a noob in Xamarin, just learning)

        <sfgrid:SfDataGrid x:Name = "dataGrid" AutoGenerateColumns="False"
            AllowSorting="True" SelectionMode="Single" ColumnSizer="Star" AllowDraggingColumn="True"
             AllowResizingColumn="True" ItemsSource="{Binding PagedSource, Source={x:Reference dataPager}}" AllowMultiSorting="True"
             GridStyle="{StaticResource dark}" GroupingMode = "Multiple" PullToRefreshCommand="{Binding LoadItemsCommand}" AllowPullToRefresh="True"
              SelectionChanged="DataGrid_SelectionChanged">
            <sfgrid:SfDataGrid.Columns x:TypeArguments="syncfusion:Columns">
                <sfgrid:GridTextColumn HeaderText="X"
                                   MappingName="X" />
                <sfgrid:GridTextColumn HeaderText="Y"
                                   MappingName="Y" />
                <sfgrid:GridTextColumn HeaderText="Z"
                                   MappingName="Z" />
                <sfgrid:GridTextColumn HeaderText="További adatok"
                                  MappingName ="'Test'" />  <--
            </sfgrid:SfDataGrid.Columns>
        </sfgrid:SfDataGrid>

Thanks advanced,
Istvan

3 Replies 1 reply marked as answer

KK Karthikraja Kalaimani Syncfusion Team December 18, 2020 06:59 AM UTC

 
Hi Molnar,

 
Your requirement can be achieved by using GridTemplateColumn. Please refer to the below UG document.

https://help.syncfusion.com/xamarin/datagrid/column-types#gridtemplatecolumn

Regards,
Karthik Raja
 


Marked as answer

MI Molnár István December 29, 2020 01:33 PM UTC

Thanks very much !


KK Karthikraja Kalaimani Syncfusion Team December 30, 2020 04:43 AM UTC


Hi Molnar,

Thanks for the update. Please let us know if you need any further assistance from us.

Regards,
Karthik Raja


Loader.
Up arrow icon