Click here to Skip to main content
15,887,027 members
Home / Discussions / WPF
   

WPF

 
AnswerRe: WPF DataGrid Pin
Mark Salsbery15-May-09 6:46
Mark Salsbery15-May-09 6:46 
AnswerRe: WPF DataGrid Pin
Niladri_Biswas13-Jun-09 3:37
Niladri_Biswas13-Jun-09 3:37 
QuestionRich WPF Charts Pin
Jacobus0114-May-09 21:27
Jacobus0114-May-09 21:27 
AnswerRe: Rich WPF Charts Pin
Member 124748119-May-09 8:02
Member 124748119-May-09 8:02 
QuestionWritableBitmap in silverlight3 Pin
VCsamir14-May-09 20:07
VCsamir14-May-09 20:07 
AnswerRe: WritableBitmap in silverlight3 Pin
Ray Cassick15-May-09 2:39
Ray Cassick15-May-09 2:39 
GeneralRe: WritableBitmap in silverlight3 Pin
VCsamir17-May-09 20:08
VCsamir17-May-09 20:08 
QuestionMultiselect mode not working for listview control containing a Gridview Pin
S Rajput14-May-09 16:12
S Rajput14-May-09 16:12 
Hi, i am trying to make a WPF listview control that contains a gridview. The problem is when i run the application, at one time user can select just 1 row of the grid. If user selects another row, the previous row selected is un-selected automatically i have tried using cntrl+ mouseclick still i can not select multiple grid view rows.
What exactly i want to do is, i would like to display gridview's coloumn(0) value of all the selected rows(concatinating each value) in the some textbox. Can anyone Please help?
My code is:


<DataTemplate x:Key="FirstCell">
<StackPanel Orientation="Horizontal">
<CheckBox IsChecked="{Binding Path=IsSelected,
RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type ListViewItem}}}" >


</CheckBox>
</StackPanel>
</DataTemplate>


<ListView
ItemsSource="{Binding}"
IsSynchronizedWithCurrentItem="True" Name="ListView1" Margin="218,83,25,88"
ScrollViewer.CanContentScroll="True" ScrollViewer.HorizontalScrollBarVisibility="Disabled"
SelectionChanged="ListView1_SelectionChanged" SelectionMode="Multiple">

<ListView.ItemContainerStyle>
<Style TargetType="ListViewItem">
<Setter Property="HorizontalContentAlignment" Value="Stretch" />
<EventSetter Event="GotFocus" Handler="Item_GotFocus" />
</Style>
</ListView.ItemContainerStyle>

<ListView.View >

<GridView x:Name="Grid1" >

<GridViewColumn Header="Code" Width="70" >
<GridViewColumn.CellTemplate>
<DataTemplate>
<TextBox Text="{Binding Path=Code}"
Margin="-6,0,-6,0" x:Name="Codename"/>
</DataTemplate>
</GridViewColumn.CellTemplate>
</GridViewColumn>
<GridViewColumn Header="Discription" Width="70" >
<GridViewColumn.CellTemplate>
<DataTemplate >
<TextBox Text="{Binding Path=Description}"
Margin="-6,0,-6,0" x:Name="Descriptionname" />
</DataTemplate>
</GridViewColumn.CellTemplate>
</GridViewColumn>
<GridViewColumn CellTemplate="{StaticResource FirstCell}"
Width="30"/>

</GridView>

</ListView.View>


</ListView>
AnswerRe: Multiselect mode not working for listview control containing a Gridview Pin
Mark Salsbery15-May-09 7:04
Mark Salsbery15-May-09 7:04 
AnswerRe: Multiselect mode not working for listview control containing a Gridview Pin
Niladri_Biswas13-Jun-09 3:43
Niladri_Biswas13-Jun-09 3:43 
QuestionPrism with DockManager Pin
Michael Sync14-May-09 15:51
Michael Sync14-May-09 15:51 
QuestionHow to get event of button inside stackpanel?very urgent.... Pin
salon14-May-09 4:23
salon14-May-09 4:23 
AnswerRe: How to get event of button inside stackpanel?very urgent.... Pin
Mark Salsbery14-May-09 7:07
Mark Salsbery14-May-09 7:07 
GeneralRe: How to get event of button inside stackpanel?very urgent.... Pin
salon17-May-09 20:09
salon17-May-09 20:09 
GeneralRe: How to get event of button inside stackpanel?very urgent.... Pin
VbGuru61326-Aug-10 7:58
VbGuru61326-Aug-10 7:58 
QuestionSorting ObservableCollection Pin
Kunal Chowdhury «IN»14-May-09 0:21
professionalKunal Chowdhury «IN»14-May-09 0:21 
AnswerRe: Sorting ObservableCollection Pin
Pete O'Hanlon14-May-09 1:39
mvePete O'Hanlon14-May-09 1:39 
AnswerRe: Sorting ObservableCollection Pin
Kunal Chowdhury «IN»14-May-09 2:21
professionalKunal Chowdhury «IN»14-May-09 2:21 
GeneralRe: Sorting ObservableCollection Pin
BlitzPackage14-May-09 9:41
BlitzPackage14-May-09 9:41 
GeneralRe: Sorting ObservableCollection Pin
Pete O'Hanlon14-May-09 10:25
mvePete O'Hanlon14-May-09 10:25 
GeneralRe: Sorting ObservableCollection Pin
Kunal Chowdhury «IN»14-May-09 20:54
professionalKunal Chowdhury «IN»14-May-09 20:54 
GeneralRe: Sorting ObservableCollection Pin
Pete O'Hanlon14-May-09 22:29
mvePete O'Hanlon14-May-09 22:29 
GeneralRe: Sorting ObservableCollection Pin
Kunal Chowdhury «IN»14-May-09 23:15
professionalKunal Chowdhury «IN»14-May-09 23:15 
GeneralRe: Sorting ObservableCollection Pin
Pete O'Hanlon15-May-09 0:40
mvePete O'Hanlon15-May-09 0:40 
AnswerRe: Sorting ObservableCollection Pin
Michael Sync14-May-09 15:58
Michael Sync14-May-09 15:58 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.