<igDP:XamDataGrid Grid.Row="1" Name="xamPostCloseDataGrid" VerticalAlignment="Stretch" Theme="Office2010Blue">
<igDP:XamDataGrid.FieldLayoutSettings>
<igDP:FieldLayoutSettings AutoGenerateFields="False" />
</igDP:XamDataGrid.FieldLayoutSettings>
<igDP:XamDataGrid.FieldSettings>
<igDP:FieldSettings AllowEdit="False" />
</igDP:XamDataGrid.FieldSettings>
<igDP:XamDataGrid.FieldLayouts>
<igDP:FieldLayout>
<igDP:Field Name="WorkPhone" Label="Work Phone" Width="*" />
<igDP:UnboundField Label="!" DataType="Image" Width="*"/>
<igDP:UnboundField Label="Status" DataType="Image" Width="*"/>
<igDP:Field Name="MinutesToAppt" Label="Minutes To Appt" Width="*" />
<igDP:Field Name="LastName" Label="Borrower" Width="*" />
<igDP:Field Name="ApptDateTime" Label="Appt Date/Time" Width="*" />
<igDP:UnboundField Label="Zone" Width="*"/>
<igDP:Field Name="TimeZoneOffset" Label="Zone" Visibility="Collapsed" />
<igDP:Field Name="ContractId" Label="Order #" Width="*" />
<igDP:UnboundField Label="Signed" Width="*" />
<igDP:UnboundField Label="Filed" Width="*" />
<igDP:Field Name="SignedFlag" Label="SignedFlag" Width="*" />
<igDP:Field Name="FiledFlag" Label="FiledFlag" Width="*" />
<igDP:Field Name="SignerNotes" Label="Notes" Width="*" />
</igDP:FieldLayout>
</igDP:XamDataGrid.FieldLayouts>
</igDP:XamDataGrid>
-----------------------------------------------------------
if (xamPostCloseDataGrid.Records.Count > 0)
{
for (int i = 0; i < xamPostCloseDataGrid.Records.Count; i++)
{
Image iconImage1 = new Image();
iconImage1.Width = 20;
iconImage1.Height = 20;
iconImage1.Margin = new Thickness(5);
BitmapImage bi1 = new BitmapImage();
bi1.BeginInit();
bi1.UriSource = new Uri(@"/Assets/Icons/imgTelephone.png", UriKind.RelativeOrAbsolute);
bi1.EndInit();
iconImage1.Source = bi1;
(xamPostCloseDataGrid.Records[i] as DataRecord).Cells[1].Value = iconImage1;
}
}
No comments:
Post a Comment