TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Tijo Johnson C
NA
136
9.2k
Combobox not bining collection inside collection on Datagrid
Jul 25 2018 4:50 AM
xaml code inside DataGrid
<
DataGridTemplateColumn
Header
=
"Unit"
Width
=
"65"
>
<
DataGridTemplateColumn.CellTemplate
>
<
DataTemplate
>
<
my:PLGDComboBox
Height
=
"23"
ItemsSource
=
"{Binding Path=SaveCls.PurDtlMastCol[RowIndx].ItemUnitCol,RelativeSource={RelativeSource AncestorType={x:Type invname:MasterForm},AncestorLevel=1,Mode=FindAncestor},UpdateSourceTrigger=PropertyChanged, Mode=TwoWay}"
SelectedValue
=
"{Binding Path=PurUnit.UnitId,UpdateSourceTrigger=PropertyChanged, Mode=TwoWay}"
DisplayMemberPath
=
"UnitName"
SelectedValuePath
=
"UnitId"
/>
</
DataTemplate
>
</
DataGridTemplateColumn.CellTemplate
>
View Model Code:
if
(dtUnit.Rows.Count > 0)
{
this
.SaveCls.PurDtlMastCol[rowIndex].ItemUnitCol =
new
PL21000DCol();
foreach
(DataRow dr
in
dtUnit.Rows)
{
this
.SaveCls.PurDtlMastCol[rowIndex].ItemUnitCol.Add(
new
PL21000D()
{
UnitId = PLWM.Utils.CnvToInt64(dr[
"unit_id"
]), UnitName = PLWM.Utils.CnvToStr(dr[
"unit_name"
]) });
}
}
Reply
Answers (
1
)
how to calculate Beep frequency in xamarin forms ios
missing xml comment for publicly visible type or member web