GridDataUnboundVisibleColumn complex binding format
Hi Jean Michel,
Sorry for the delay in getting back to you.
We have analyzed your code snippet and it will work only in normal property so if you are using complex property then you have to use following the code snippet for combine two property value in single column.
Code snippet[XAML]:
| <syncfusion:GridDataUnboundVisibleColumn HeaderText="ComplexProperty"> <syncfusion:GridDataUnboundVisibleColumn.CellItemTemplate> <DataTemplate> <Grid> <Grid.ColumnDefinitions> <ColumnDefinition Width="40" /> <ColumnDefinition Width="*" /> </Grid.ColumnDefinitions> <TextBlock Grid.Column="0" Text="{Binding Path=Record.Data.Complex.EmpID}" /> <TextBlock Grid.Column="1" Text="{Binding Path=Record.Data.Complex1.EmpName}"/> </Grid> </DataTemplate> </syncfusion:GridDataUnboundVisibleColumn.CellItemTemplate> </syncfusion:GridDataUnboundVisibleColumn>
|
We have prepared simple sample based on your requirement and please find the sample under the following location.
Sample: GDC_ComplexPropertyBinding.zip
Please let us know if you have any queries.
Regards,
Gobinath A.
- 3 Replies
- 2 Participants
-
JM JEAN MICHEL CAMIZON
- Jul 25, 2013 01:28 PM UTC
- Aug 1, 2013 07:25 AM UTC