Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
130
XamGrid Columns Calculation - Silverlight app
posted

Have XamGrid with 1 bound column, 3 unbound columns

 for example: Product, UnitPrice, Quantity, Total

As the user enters quantity the Total has to get updated.

When the screen comes it has 10 rows with 10 products, unitprice filled in, and quantity and total are empty

Please give me a sample how to achieve this. total shouls get updated as user moves along the quantity column.

<ig:XamGrid Name="xg1">
<ig:TextColumn Key="Producutde" HeaderText="Producut"/>
<ig:UnboundColumn HeaderText="Unit Price" Key="UnitPrice" >
    <ig:UnboundColumn.ItemTemplate>
        <DataTemplate>
            <TextBox x:Name="UnitPrice"  />
        </DataTemplate>
    </ig:UnboundColumn.ItemTemplate>
</ig:UnboundColumn>
..similar to Quantity and Total
 Need the xaml and c# code for this
 
Parents
No Data
Reply
  • 4475
    posted

    Hello,

     

    Thank you for your post.

     

    I am glad that my sample helped in solving your issue.

    The valueConverter was there only for debugging purpose and is not needed for the solution’s implementation.

     

    Thank you for choosing Infragistics components.

     

    Sincerely,

    Ekaterina

    Developer Support Engineer

    Infragistics, Inc.

    www.infragistics.com/support

     

Children
No Data