Unable to binda the data medication view control

May 26, 2009 at 6:39 AM
Edited May 26, 2009 at 6:40 AM

i have created one project and  used all the componets in my application. but my application does not shows the data

Jun 2, 2009 at 8:55 AM

hi Srimarthi2008

The Medications List View control has been used successfully, so I suggest that you review the documentation. If you are still experiencing issues, please contact us with some specific details of your implementation and the problem.

Regards

Tom Chapman

MSCUI Release Manager

Nov 12, 2009 at 4:21 PM
Edited Nov 12, 2009 at 4:32 PM

hi Tom,

I am using Medications List View control but not able to bind data in this from WCF services/code behind. If I put hard coded values within the columns then I can see those. 

Below is the part of code that I am trying to do

In XAML file:  DataContext="Binding"

 and in XAML.cs file writing:  WrapDataGrid.DataContext = e.Result

Pls help me..

spandey

<font size="2" color="#0000ff"><font size="2" color="#0000ff">

<

</font></font><font size="2" color="#0000ff">

 

</font>

ctl:WrapDataGrid Grid.Row="1" Margin="4,0" x:Name="WrapDataGrid" SelectionMode="MultipleSimple" LookAheadCellTemplate="{StaticResource LookAheadCellTemplate}" LookBehindCellTemplate="{StaticResource LookBehindCellTemplate}" <font size="2">

 

</font>

LookAheadSummaryCellTemplate="{StaticResource LookAheadSummaryCellTemplate}" LookBehindSummaryCellTemplate="{StaticResource LookBehindSummaryCellTemplate}" CurrentEvenRowBackground="{StaticResource CurrentEvenRowBrush}" CurrentOddRowBackground="{StaticResource CurrentOddRowBrush}" CurrentSelectedRowBackground="{StaticResource CurrentSelectedRowBrush}" SelectionBackground="{StaticResource SelectedRowBrush}" <font size="2">

 

</font>

OnColumnHeaderClick="WrapDataGrid_ColumnHeaderClick" <font size="2">

 

</font>

OnGroupingRender="WrapDataGrid_OnGroupingRender" GroupingDataTemplatePresentation="{StaticResource groupingTemplatePresentation}" DataContext="Binding" AscendingOrderIndicatorDataTemplate="{StaticResource AscendingIndicator}" DescendingOrderIndicatorDataTemplate="{StaticResource DescendingIndicator}" <font size="2">

 

</font>

AlternatingRowBackground="#f2f2f2" <font size="2">

 

</font>

OnKeyPress="WrapDataGrid_OnKeyPress" <font size="2">

 

</font>

IsTabStop="True" ColumnResizerTemplate="{StaticResource ColumnResizerTemplate}" >

<font size="2" color="#0000ff"><font size="2" color="#0000ff">

<

</font></font><font size="2" color="#0000ff">

 

</font>

ctl:WrapDataGridColumn ColumnDefinition="{StaticResource WGColumn4}" BodyMarginAsString="8,0,0,0"> <font size="2" color="#a31515"><font size="2" color="#a31515">

 

</font></font><font size="2" color="#a31515">

 

</font>

<ctl:WrapDataGridColumn.CellTemplate> <font size="2" color="#a31515"><font size="2" color="#a31515">

 

</font></font><font size="2" color="#a31515">

 

</font>

<DataTemplate> <font size="2" color="#a31515"><font size="2" color="#a31515">

 

</font></font><font size="2" color="#a31515">

 

</font>

<TextBlock FontSize="12" FontFamily="Arial" Margin="0,0,10,0" FontWeight="Bold" Text="{Binding QuestionText}"/> <font size="2" color="#a31515"><font size="2" color="#a31515">

 

</font></font><font size="2" color="#a31515">

 

</font>

</DataTemplate> <font size="2" color="#a31515"><font size="2" color="#a31515">

 

</font></font><font size="2" color="#a31515">

 

</font>

</ctl:WrapDataGridColumn.CellTemplate> <font size="2" color="#a31515"><font size="2" color="#a31515">

 

</font></font><font size="2" color="#a31515">

 

</font>

<ctl:WrapDataGridColumn.HeaderTemplate> <font size="2" color="#a31515"><font size="2" color="#a31515">

 

</font></font><font size="2" color="#a31515">

 

</font>

<DataTemplate> <font size="2" color="#a31515"><font size="2" color="#a31515">

 

</font></font><font size="2" color="#a31515">

 

</font>

<TextBlock FontSize="12" FontFamily="Arial" Margin="5,4,5,0" Height="20" Text="Status"/> <font size="2" color="#a31515"><font size="2" color="#a31515">

 

</font></font><font size="2" color="#a31515">

 

</font>

</DataTemplate> <font size="2" color="#a31515"><font size="2" color="#a31515">

 

</font></font><font size="2" color="#a31515">

 

</font>

</ctl:WrapDataGridColumn.HeaderTemplate> <font size="2" color="#a31515"><font size="2" color="#a31515">

 

</font></font><font size="2" color="#a31515">

 

</font>

</ctl:WrapDataGridColumn>

Developer
Nov 17, 2009 at 9:15 AM

Hi all,

There is a similar thread here:

http://mscui.codeplex.com/Thread/View.aspx?ThreadId=67808

Please continue to post there so we can keep track of the discussion in one place.

Thanks,

Martin