Click here to Skip to main content
15,921,371 members
Home / Discussions / WPF
   

WPF

 
GeneralRe: WPF Views & ViewModels Question Pin
Kevin Marois16-Oct-13 11:10
professionalKevin Marois16-Oct-13 11:10 
GeneralRe: WPF Views & ViewModels Question Pin
SledgeHammer0116-Oct-13 17:41
SledgeHammer0116-Oct-13 17:41 
GeneralRe: WPF Views & ViewModels Question Pin
SledgeHammer0116-Oct-13 10:09
SledgeHammer0116-Oct-13 10:09 
Questionaccessing remote system Pin
Arun kumar Gautam9-Oct-13 23:18
Arun kumar Gautam9-Oct-13 23:18 
AnswerRe: accessing remote system Pin
Richard MacCutchan9-Oct-13 23:25
mveRichard MacCutchan9-Oct-13 23:25 
GeneralRe: accessing remote system Pin
Arun kumar Gautam9-Oct-13 23:43
Arun kumar Gautam9-Oct-13 23:43 
GeneralRe: accessing remote system Pin
Richard MacCutchan10-Oct-13 0:07
mveRichard MacCutchan10-Oct-13 0:07 
AnswerRe: accessing remote system Pin
mohitsaxena110-Oct-13 7:50
professionalmohitsaxena110-Oct-13 7:50 
GeneralRe: accessing remote system Pin
Arun kumar Gautam11-Oct-13 7:00
Arun kumar Gautam11-Oct-13 7:00 
GeneralRe: accessing remote system Pin
Richard MacCutchan11-Oct-13 7:46
mveRichard MacCutchan11-Oct-13 7:46 
QuestionBinding converter in code behind Pin
USAFHokie804-Oct-13 2:24
USAFHokie804-Oct-13 2:24 
AnswerRe: Binding converter in code behind Pin
Richard Deeming4-Oct-13 3:02
mveRichard Deeming4-Oct-13 3:02 
AnswerRe: Binding converter in code behind Pin
USAFHokie804-Oct-13 3:24
USAFHokie804-Oct-13 3:24 
GeneralRe: Binding converter in code behind Pin
Richard Deeming4-Oct-13 3:34
mveRichard Deeming4-Oct-13 3:34 
AnswerRe: Binding converter in code behind Pin
mohitsaxena110-Oct-13 8:04
professionalmohitsaxena110-Oct-13 8:04 
Questionvalidation for 2 DateTimePicker (start date and end date) in WPF Pin
Yogi_vns0073-Oct-13 2:04
Yogi_vns0073-Oct-13 2:04 
AnswerRe: validation for 2 DateTimePicker (start date and end date) in WPF Pin
mohitsaxena110-Oct-13 8:09
professionalmohitsaxena110-Oct-13 8:09 
Questionget two columns Pin
picasso21-Oct-13 17:52
picasso21-Oct-13 17:52 
I have a SL/WPF application that populates a datagrid.  The button contains this code:

MyDomainContext context = new MyDomainContext();
dataGrid1.ItemsSource = context.DBTables;
context.Load(context.GetTwoDataBasesQuery());


The DomainServices.cs contains:

public IQueryable<DBTable>GetTwoDataBases()
{
return this.ObjectContext.DBTables;
}
 This code works fine but returns all columns in the context
I need to return only two columns so changed is as follows


public IQueryable<DBTable>GetTwoDataBases()
        {
           
            return GetDBTables().Select(m => new { m.col1, m.col2 });
            
        }
But code has errors, does not accept the "return" .
 how do I get col1 and col2?
Many thanX

QuestionWPF Text box style Pin
Yogi_vns00726-Sep-13 4:16
Yogi_vns00726-Sep-13 4:16 
AnswerRe: WPF Text box style Pin
Kenneth Haugland26-Sep-13 4:29
mvaKenneth Haugland26-Sep-13 4:29 
AnswerRe: WPF Text box style Pin
Bernhard Hiller26-Sep-13 21:59
Bernhard Hiller26-Sep-13 21:59 
AnswerRe: WPF Text box style Pin
Abhinav S27-Sep-13 22:59
Abhinav S27-Sep-13 22:59 
GeneralRe: WPF Text box style Pin
Yogi_vns0072-Oct-13 18:46
Yogi_vns0072-Oct-13 18:46 
GeneralRe: WPF Text box style Pin
Mycroft Holmes2-Oct-13 22:55
professionalMycroft Holmes2-Oct-13 22:55 
QuestionMEF and ActiveX control in .NET Pin
Raajikiwi24-Sep-13 19:20
Raajikiwi24-Sep-13 19:20 

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.