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

WPF

 
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 
QuestionHow to print & preview Radgridview row per page in wpf Pin
ramkie24-Sep-13 18:42
ramkie24-Sep-13 18:42 
AnswerRe: How to print & preview Radgridview row per page in wpf Pin
Abhinav S24-Sep-13 20:39
Abhinav S24-Sep-13 20:39 
QuestionWPF DataGrid with DataGrid in RowDetailsTemplate Pin
Kevin Marois24-Sep-13 6:18
professionalKevin Marois24-Sep-13 6:18 
QuestionWPF MVVM Determine When Property On Model Changes Pin
Kevin Marois24-Sep-13 5:11
professionalKevin Marois24-Sep-13 5:11 
AnswerRe: WPF MVVM Determine When Property On Model Changes Pin
Pete O'Hanlon24-Sep-13 5:27
mvePete O'Hanlon24-Sep-13 5:27 
GeneralRe: WPF MVVM Determine When Property On Model Changes Pin
Kevin Marois24-Sep-13 5:29
professionalKevin Marois24-Sep-13 5:29 
GeneralRe: WPF MVVM Determine When Property On Model Changes Pin
Pete O'Hanlon24-Sep-13 5:44
mvePete O'Hanlon24-Sep-13 5:44 
GeneralRe: WPF MVVM Determine When Property On Model Changes Pin
Kevin Marois24-Sep-13 5:45
professionalKevin Marois24-Sep-13 5:45 
GeneralRe: WPF MVVM Determine When Property On Model Changes Pin
Pete O'Hanlon24-Sep-13 7:04
mvePete O'Hanlon24-Sep-13 7:04 
GeneralRe: WPF MVVM Determine When Property On Model Changes Pin
SledgeHammer0124-Sep-13 8:21
SledgeHammer0124-Sep-13 8:21 

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.