Please see the attached screenshot. Essentially some cell is aligned at the top, while some cell is aligned in the middle.
Code in question:
NameConverter just convert the entity into a display name (return as string)
BirthdateAgeConverter calcualtes age from birthdate (return as string)
TriStateConverter convert a bool? value into string
<
Style
TargetType
=
"telerik:GridViewCell"
x:Key
=
"CustomCellStyle"
>
<
Setter
Property
=
"VerticalContentAlignment"
Value
=
"Center"
/>
</
Style
>
Code in question:
<
telerik:GridViewDataColumn
Header
=
"Name"
DataMemberBinding
=
"{Binding pplName, Converter={StaticResource NameConverter}}"
CellStyle
=
"{StaticResource CustomCellStyle}"
/>
<
telerik:GridViewDataColumn
Header
=
"Relationship"
DataMemberBinding
=
"{Binding defRelationship.desc1}"
CellStyle
=
"{StaticResource CustomCellStyle}"
/>
<
telerik:GridViewDataColumn
Header
=
"Gender"
DataMemberBinding
=
"{Binding pplName.defGender.desc1}"
CellStyle
=
"{StaticResource CustomCellStyle}"
/>
<
telerik:GridViewDataColumn
Header
=
"Age"
DataMemberBinding
=
"{Binding pplName.birthDate, Converter={StaticResource BirthdateAgeConverter}}"
CellStyle
=
"{StaticResource CustomCellStyle}"
/>
<
telerik:GridViewDataColumn
Header
=
"Lives With Client"
DataMemberBinding
=
"{Binding livesWithClient, Converter={StaticResource TriStateConverter}, ConverterParameter=Text}"
CellStyle
=
"{StaticResource CustomCellStyle}"
/>
NameConverter just convert the entity into a display name (return as string)
BirthdateAgeConverter calcualtes age from birthdate (return as string)
TriStateConverter convert a bool? value into string