Click here to Skip to main content
15,925,602 members
Home / Discussions / C#
   

C#

 
AnswerRe: i got error when i try to connect to my WebService Pin
Subin Mavunkal18-Aug-11 8:25
Subin Mavunkal18-Aug-11 8:25 
Questionhow to handle ink In Microsoft.ink sdk Pin
zoyakhan17-Aug-11 21:39
zoyakhan17-Aug-11 21:39 
AnswerRe: how to handle ink In Microsoft.ink sdk Pin
BobJanova18-Aug-11 1:20
BobJanova18-Aug-11 1:20 
QuestionInheriting a template class [modified] Pin
Subin Mavunkal17-Aug-11 2:17
Subin Mavunkal17-Aug-11 2:17 
AnswerRe: Inheriting a template class [modified] Pin
Pete O'Hanlon17-Aug-11 2:19
mvePete O'Hanlon17-Aug-11 2:19 
AnswerRe: Inheriting a template class Pin
BobJanova17-Aug-11 3:09
BobJanova17-Aug-11 3:09 
AnswerRe: Inheriting a template class Pin
#realJSOP17-Aug-11 4:09
professional#realJSOP17-Aug-11 4:09 
GeneralRe: Inheriting a template class [modified] Pin
Subin Mavunkal17-Aug-11 19:28
Subin Mavunkal17-Aug-11 19:28 
GeneralRe: Inheriting a template class Pin
Mycroft Holmes17-Aug-11 20:04
professionalMycroft Holmes17-Aug-11 20:04 
GeneralRe: Inheriting a template class Pin
Firo Atrum Ventus17-Aug-11 20:14
Firo Atrum Ventus17-Aug-11 20:14 
GeneralRe: Inheriting a template class [modified] Pin
Subin Mavunkal18-Aug-11 1:14
Subin Mavunkal18-Aug-11 1:14 
GeneralRe: Inheriting a template class Pin
Richard MacCutchan18-Aug-11 2:10
mveRichard MacCutchan18-Aug-11 2:10 
GeneralRe: Inheriting a template class Pin
#realJSOP18-Aug-11 8:17
professional#realJSOP18-Aug-11 8:17 
GeneralRe: Inheriting a template class Pin
Richard MacCutchan18-Aug-11 9:25
mveRichard MacCutchan18-Aug-11 9:25 
GeneralRe: Inheriting a template class Pin
BobJanova18-Aug-11 1:32
BobJanova18-Aug-11 1:32 
GeneralRe: Inheriting a template class Pin
#realJSOP18-Aug-11 8:16
professional#realJSOP18-Aug-11 8:16 
GeneralRe: Inheriting a template class [modified] Pin
Subin Mavunkal18-Aug-11 19:49
Subin Mavunkal18-Aug-11 19:49 
QuestionGeneric framework or pattern for adding colomns to a WPF ListView Pin
Vincent Beek17-Aug-11 0:28
Vincent Beek17-Aug-11 0:28 
AnswerRe: Generic framework or pattern for adding colomns to a WPF ListView Pin
BobJanova17-Aug-11 4:54
BobJanova17-Aug-11 4:54 
GeneralRe: Generic framework or pattern for adding colomns to a WPF ListView Pin
Vincent Beek17-Aug-11 7:19
Vincent Beek17-Aug-11 7:19 
GeneralRe: Generic framework or pattern for adding colomns to a WPF ListView Pin
SledgeHammer0117-Aug-11 8:02
SledgeHammer0117-Aug-11 8:02 
GeneralRe: Generic framework or pattern for adding colomns to a WPF ListView Pin
BobJanova17-Aug-11 9:04
BobJanova17-Aug-11 9:04 
GeneralRe: Generic framework or pattern for adding colomns to a WPF ListView Pin
SledgeHammer0117-Aug-11 9:36
SledgeHammer0117-Aug-11 9:36 
Ah, your solution is for a WinForms DataGridView Smile | :) . A WPF ListView is a *completely* different animal. ListView.ItemsSource would point to an ObservableCollection<SomeClass>, but columns are defined in a *completely* different place. Also, when you define the columns, you need to define what member of SomeClass will be shown for each column. The WPF ListView column collection doesn't support binding out of the box as I indicated in my other post. You have to do some work to get that to work. In WPF you generally need to tell the control what property to display. Another note is that WPF XAML does NOT play nice with generics. You should generally avoid using them for objects that are going to be displayed. Well, I don't mean don't use them, but I mean, you need to do something like:

public SomeClassCollection : ObservableCollection<SomeClass>
{
}

and then use SomeClassCollection everywhere since you can't specify ObservableCollection<SomeClass> in XAML.
GeneralRe: Generic framework or pattern for adding colomns to a WPF ListView Pin
BobJanova17-Aug-11 9:44
BobJanova17-Aug-11 9:44 
GeneralRe: Generic framework or pattern for adding colomns to a WPF ListView Pin
SledgeHammer0117-Aug-11 9:48
SledgeHammer0117-Aug-11 9:48 

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.