Click here to Skip to main content
15,902,275 members
Home / Discussions / WPF
   

WPF

 
AnswerRe: REMOVE DATA IN ACCORDION AT RUN TIME Pin
Abhinav S18-Jan-11 18:04
Abhinav S18-Jan-11 18:04 
QuestionAccess Parent of Templated TreeViewItem Control ? Pin
AmitDey17-Jan-11 5:56
AmitDey17-Jan-11 5:56 
AnswerRe: Access Parent of Templated TreeViewItem Control ? Pin
SledgeHammer0118-Jan-11 7:30
SledgeHammer0118-Jan-11 7:30 
GeneralRe: Access Parent of Templated TreeViewItem Control ? Pin
AmitDey18-Jan-11 7:40
AmitDey18-Jan-11 7:40 
Questionsql server express [modified] Pin
arkiboys17-Jan-11 2:30
arkiboys17-Jan-11 2:30 
AnswerRe: sql server express Pin
Pete O'Hanlon17-Jan-11 3:12
mvePete O'Hanlon17-Jan-11 3:12 
AnswerRe: sql server express Pin
Abhinav S17-Jan-11 5:34
Abhinav S17-Jan-11 5:34 
QuestionGridview not showing items [modified] [Solved] Pin
V.17-Jan-11 1:22
professionalV.17-Jan-11 1:22 
[EDIT]Issue below is solved. Somehow, for some reason, the properties indicating the binding needed to be in uppercase. I was under the impression that oracle was caseINsensative on this point? If anyone can elaborate, please do, because honestly, I don't understand.
[/EDIT]


I have a listview which ItemsSource is set from a dataset. I verified its contents and affter the assigment this property has the correct values.

In my XAML I then defined the GridViewColumns by binding the object-properties to the corresponding column in the grid. A prototype with MS Access worked perfectly. Now we moved to Oracle and changed one column from string to a datetime. To tackle this, I made a valueconverter.

Problem is, for some reason, the grid stays empty. No errors. the Items.Count shows there are items, but they don't show up in the grid. I can also select each row. In addition a breakpoint in the valueconverters classes don't break for some reason.

I'm pretty sure it's or the valueconverter or the XAML that's wrong, but after staring at it for 2 hours and googling I couldn't find my problem.

Does someone recognize this issue (it must be something small and stupid I'm overlooking)? Many thanks !

here's the XAML code:
<ListView Name="lv_logs" ItemsSource="{Binding}" FontSize="12">
	<ListView.View>
		<GridView>
			<GridViewColumn Header="DateTime">
				<GridViewColumn.CellTemplate>
                    <DataTemplate>
			<TextBlock VerticalAlignment="Center" Margin="5,0,0,0" Text="{Binding Path=logdts, Converter={StaticResource dts_valueconverter}}"></TextBlock>
                    </DataTemplate>
                </GridViewColumn.CellTemplate>
			</GridViewColumn>
			<GridViewColumn Header="Type">
				<GridViewColumn.CellTemplate>
                    <DataTemplate>
			<StackPanel Orientation="Horizontal">
				<Image Source="{Binding Path=logtype, Converter={StaticResource logtype_valueconverter}}" Height="20" Width="20"/>
				<TextBlock VerticalAlignment="Center" Margin="5,0,0,0" Text="{Binding Path=logtype}"></TextBlock>
			</StackPanel>
                    </DataTemplate>
                </GridViewColumn.CellTemplate>
			</GridViewColumn>
			<GridViewColumn Header="Actor">
				<GridViewColumn.CellTemplate>
                    <DataTemplate>
			<StackPanel Orientation="Horizontal">
				<Image Source="{Binding Path=logactor, Converter={StaticResource logactor_valueconverter}}" Height="20" Width="20"/>
				<TextBlock VerticalAlignment="Center" Margin="5,0,0,0" Text="{Binding Path=logactor}"></TextBlock>
			</StackPanel>
                    </DataTemplate>
                </GridViewColumn.CellTemplate>
			</GridViewColumn>
			<GridViewColumn Header="Application" DisplayMemberBinding="{Binding Path=logmodule}"></GridViewColumn>
			<GridViewColumn Header="Machine" DisplayMemberBinding="{Binding Path=logmachine}"></GridViewColumn>
			<GridViewColumn Header="Message" DisplayMemberBinding="{Binding Path=logmessage}"></GridViewColumn>
		</GridView>
	</ListView.View>
</ListView>

V.
modified on Monday, January 17, 2011 8:07 AM

QuestionColumnbar styling quesiton in SL4 [modified] Pin
CrafterIt16-Jan-11 22:46
CrafterIt16-Jan-11 22:46 
AnswerRe: Columnbar styling quesiton in SL4 Pin
CrafterIt17-Jan-11 2:23
CrafterIt17-Jan-11 2:23 
Questioncant play sound from source using MediaElement Pin
igalep13215-Jan-11 12:09
igalep13215-Jan-11 12:09 
AnswerRe: cant play sound from source using MediaElement Pin
omeriko916-Jan-11 6:59
omeriko916-Jan-11 6:59 
GeneralRe: cant play sound from source using MediaElement Pin
igalep13216-Jan-11 11:45
igalep13216-Jan-11 11:45 
GeneralRe: cant play sound from source using MediaElement Pin
omeriko916-Jan-11 20:21
omeriko916-Jan-11 20:21 
GeneralRe: cant play sound from source using MediaElement Pin
igalep13216-Jan-11 20:41
igalep13216-Jan-11 20:41 
GeneralRe: cant play sound from source using MediaElement Pin
omeriko916-Jan-11 20:43
omeriko916-Jan-11 20:43 
Questionwpf 2010 express Pin
arkiboys14-Jan-11 20:18
arkiboys14-Jan-11 20:18 
AnswerRe: wpf 2010 express Pin
Praveen Raghuvanshi15-Jan-11 4:30
professionalPraveen Raghuvanshi15-Jan-11 4:30 
AnswerRe: wpf 2010 express Pin
Abhinav S16-Jan-11 2:18
Abhinav S16-Jan-11 2:18 
QuestionThe property 'ContentStringFormat' does not exist on the type Pin
CrafterIt13-Jan-11 22:45
CrafterIt13-Jan-11 22:45 
AnswerRe: The property 'ContentStringFormat' does not exist on the type Pin
Pete O'Hanlon13-Jan-11 23:12
mvePete O'Hanlon13-Jan-11 23:12 
GeneralRe: The property 'ContentStringFormat' does not exist on the type Pin
CrafterIt13-Jan-11 23:18
CrafterIt13-Jan-11 23:18 
GeneralRe: The property 'ContentStringFormat' does not exist on the type Pin
Pete O'Hanlon13-Jan-11 23:26
mvePete O'Hanlon13-Jan-11 23:26 
GeneralRe: The property 'ContentStringFormat' does not exist on the type Pin
CrafterIt14-Jan-11 0:04
CrafterIt14-Jan-11 0:04 
QuestionMVVM Patter and databinding [modified] Pin
ToddHileHoffer13-Jan-11 15:18
ToddHileHoffer13-Jan-11 15:18 

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.