15,891,136 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View Python questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by tpwright4423 (Top 13 by date)
tpwright4423
31-Mar-12 23:20pm
View
Thanks for the comment. I will try your suggestion when I get a moment.
During my numerous attempts to understand what was happening, I added a foreach loop to walk through displayedOrders and locate the appropriate row by the contained value of interest (an approach I avoided in my original implementation because of its poor performance) and ov.Equals(foundRow) returned false. That, coupled with the observed failure to select the DataGrid row, leads me to believe that a different instance was returned from query = displayedOrders.Where(x => x.PutAwayNo == pSearchFor) et al.
The statement that puzzles you is how I am extracting the first row returned from the queries (there can be multiple rows with the value being looked for). Why does that seem odd to you? Is this the place where I admit that I am a Linq-to-SQL newbie? ;-)
tpwright4423
8-Nov-11 7:52am
View
Deleted
Very clever. However, without the comment explaining that the AddRange causes Count to be increased, thereby causing the children of new members of the list to be examined, it is, IMHO, an approach to be avoided.
tpwright4423
9-May-11 16:15pm
View
But, clearly you DO have god-like knowledge! And thanks to your tip, I have discovered that binding the dictionary object to the DataContext of my UI element allows me to bind other dependency properties to my source object's properties via the {Binding Path=OtherPropertyName} syntax. Gooey-ness is good!
tpwright4423
9-May-11 9:48am
View
Oops! Forgot to edit that one occurrence, didn't I?
Thanks for the help. As usual, the solution, once seen, seems so easy.
tpwright4423
9-May-11 8:28am
View
...and just how did you know that my app was OPC-related?
tpwright4423
8-May-11 17:49pm
View
Pete, thank you for the (naturally) oh-so-simple solution. Perfect! Is my WPF newbie-ness showing?
Regards,
Tom
tpwright4423
16-Feb-11 22:16pm
View
OK. Here's the link. Thanks very much for taking the time to look at it.
https://cid-ecf0057ed7459dbc.skydrive.live.com/redir.aspx?resid=ECF0057ED7459DBC!104
Regards,
Tom
tpwright4423
16-Feb-11 13:09pm
View
I have extrapolated my problem to a rather simple test case. I have the source code in a .zip file. Would you care to look at it? If so, how can I get it to you?
Thanks in advance.
Tom
tpwright4423
16-Feb-11 12:19pm
View
Well, it turns out that I had previously implemented INotifyPropertyChanged in my data object for each property that can change value after it has been bound to the ListView, so raising that event whenever the property value changes is NOT causing my data converter to be called again. Got another idea?
Thanks,
Tom
tpwright4423
16-Feb-11 8:53am
View
Sigh. I will try again later -- got to run now.
tpwright4423
16-Feb-11 8:52am
View
Well, I'm not sure why the XAML for the ListView.View didn't appear. I will try again.
<ListView Height="380" Name="lvwPickList" Width="840" HorizontalContentAlignment="Center"
ItemContainerStyle="{StaticResource ICStyle}" >
<ListView.View>
<gridview>
<gridviewcolumn width="30" header="Bay"
="" displaymemberbinding="{Binding BayNumber}">
<gridviewcolumn width="35" header="Shelf"
="" displaymemberbinding="{Binding Shelf}">
<gridviewcolumn width="50" header="Position"
="" displaymemberbinding="{Binding Position}">
<gridviewcolumn width="90" header="SKU"
="" displaymemberbinding="{Binding SKU}">
<gridviewcolumn width="75" header="Qty To Pick"
="" displaymemberbinding="{Binding QtyToPick}">
<gridviewcolumn width="75" header="Qty Picked"
="" displaymemberbinding="{Binding QtyPicked}">
<gridviewcolumn width="75" header="Complete At"
="" displaymemberbinding="{Binding FormattedPickCompleteAt}">
</ListView.View>
</ListView>
tpwright4423
16-Feb-11 8:50am
View
Thank you very much for taking the time to answer.
I was surprised when, with no additional effort, the ListView cell contents were being updated updated to reflect the change in value. Is that happening independently of the INotifyPropertyChanged interface implementation?
I have read through the article you reference once and I aplogize in advance if my next questions betray my lack of WPF understanding. The only ListView binding I specify in the XAML is that for the columns:
<ListView Height="380" Name="lvwPickList" Width="840" HorizontalContentAlignment="Center"
ItemContainerStyle="{StaticResource ICStyle}" >
<ListView.View>
<gridview>
<gridviewcolumn width="30" header="Bay"
="" displaymemberbinding="{Binding BayNumber}">
<gridviewcolumn width="35" header="Shelf"
="" displaymemberbinding="{Binding Shelf}">
<gridviewcolumn width="50" header="Position"
="" displaymemberbinding="{Binding Position}">
<gridviewcolumn width="90" header="SKU"
="" displaymemberbinding="{Binding SKU}">
<gridviewcolumn width="75" header="Qty To Pick"
="" displaymemberbinding="{Binding QtyToPick}">
<gridviewcolumn width="75" header="Qty Picked"
="" displaymemberbinding="{Binding QtyPicked}">
<gridviewcolumn width="75" header="Complete At"
="" displaymemberbinding="{Binding FormattedPickCompleteAt}">
</ListView.View>
</ListView>
What is the default binding Mode? Where should I specify that I want OneWay binding? If I implement the INotifyPropertyChanged interface, will the value converter I created for setting the background color be called when a value changes or do I need to implement another converter?
Thanks in advance for your help.
Tom
tpwright4423
16-Feb-11 8:40am
View
Thanks. My "newbie" status is showing -- I blindly followed the link in the e-mail notification of your posting. :-)
Show More