CheckBox in GridView

Posted by Syedshakeer under WPF on 10/23/2010 | Points: 10 | Views : 4669 | Status : [Member] | Replies : 1

I have a Gridview(Windows From) with CheckBox Column and i have one TextBox outside the Gridview.When user enter the number in TextBox as 2 the Second Row of Gridview CheckBox should be CHECKED.
The followind is my .xaml code
<ListView ItemContainerStyle="{StaticResource CustomListViewItemStyle}" AlternationCount="2" BorderBrush="Black" BorderThickness="1" Name="listviewRePrintDetails" ItemsSource="{Binding}" Background="WhiteSmoke" Margin="0,0,350,5" Grid.ColumnSpan="3">
<GridView >

<GridViewColumn Width="50" >
<HeaderedContentControl >
<CheckBox IsChecked="{Binding Path=Value}" HorizontalContentAlignment="Right" HorizontalAlignment="Right" IsThreeState="False"></CheckBox>
<GridViewColumn.CellTemplate >

<DataTemplate >
<CheckBox VerticalAlignment="Center" HorizontalAlignment="Center" IsChecked="{Binding Path=Value}" Width=" 25" IsThreeState="False"></CheckBox>


Syed Shakeer Hussain


Posted by: Vuyiswamb on: 11/2/2010 [Member] [MVP] [Administrator] NotApplicable | Points: 25

this does not look like Windows App

Thank you for posting at Dotnetfunda

Syedshakeer, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response