Click here to Skip to main content
15,917,610 members
Home / Discussions / WPF
   

WPF

 
QuestionHow to use WCF service in silver light application Pin
Nekkantidivya9-Nov-09 21:33
Nekkantidivya9-Nov-09 21:33 
AnswerRe: How to use WCF service in silver light application Pin
Mark Salsbery10-Nov-09 7:10
Mark Salsbery10-Nov-09 7:10 
AnswerRe: How to use WCF service in silver light application Pin
Michael Eber28-Dec-09 12:41
Michael Eber28-Dec-09 12:41 
QuestionHow to Bind the Image to DataGrid Control from DataBase in WPF With C# Pin
ChandrakanthGaddam9-Nov-09 20:20
ChandrakanthGaddam9-Nov-09 20:20 
AnswerRe: How to Bind the Image to DataGrid Control from DataBase in WPF With C# Pin
Mark Salsbery10-Nov-09 6:16
Mark Salsbery10-Nov-09 6:16 
QuestionDataGridTextColumn Content? Pin
Sundeep Ganiga9-Nov-09 19:09
Sundeep Ganiga9-Nov-09 19:09 
QuestionRe: DataGridTextColumn Content? Pin
Mark Salsbery10-Nov-09 7:12
Mark Salsbery10-Nov-09 7:12 
AnswerRe: DataGridTextColumn Content? Pin
Sundeep Ganiga11-Nov-09 3:41
Sundeep Ganiga11-Nov-09 3:41 
GeneralRe: DataGridTextColumn Content? Pin
Mark Salsbery11-Nov-09 9:43
Mark Salsbery11-Nov-09 9:43 
QuestionMessage Removed Pin
9-Nov-09 6:22
professionalN_tro_P9-Nov-09 6:22 
AnswerMessage Removed Pin
9-Nov-09 8:49
professionalN_tro_P9-Nov-09 8:49 
GeneralRe: MVVM and using WPF Toolkit charting Pin
Jeremy Hutchinson12-Nov-09 5:05
professionalJeremy Hutchinson12-Nov-09 5:05 
QuestionWant to measure the drawing / rending time of WPF usercontrols Pin
netsrak219-Nov-09 3:05
netsrak219-Nov-09 3:05 
QuestionError in WCF service in Silverlight application Pin
Nekkantidivya8-Nov-09 22:35
Nekkantidivya8-Nov-09 22:35 
QuestionRe: Error in WCF service in Silverlight application Pin
Mark Salsbery9-Nov-09 7:22
Mark Salsbery9-Nov-09 7:22 
QuestionWPF printing issue Pin
Hari.net8-Nov-09 19:29
Hari.net8-Nov-09 19:29 
QuestionHow to use ref keyword in silver light application Pin
rag_Singh8-Nov-09 18:18
rag_Singh8-Nov-09 18:18 
AnswerRe: How to use ref keyword in silver light application Pin
Mark Salsbery9-Nov-09 7:20
Mark Salsbery9-Nov-09 7:20 
GeneralRe: How to use ref keyword in silver light application Pin
rag_Singh10-Nov-09 1:08
rag_Singh10-Nov-09 1:08 
QuestionRe: How to use ref keyword in silver light application Pin
Mark Salsbery10-Nov-09 7:16
Mark Salsbery10-Nov-09 7:16 
QuestionRe: How to use ref keyword in silver light application [modified] Pin
rag_Singh10-Nov-09 18:02
rag_Singh10-Nov-09 18:02 
Actually firstly i was using ref type variable since i had no idea of using ref keywords in silverlight so i changed my logics and used there DataTable but i came to knew from you that Silverlight don't have DataTable class.
Over all i am getting some data by Linq and kept it in DataTable after performing few manipulation.Function that creates DataTable is as bellow.(all code are written on Services1.svc.cs page)

public DataTable createTable()
{
DataTable tbl2 = new DataTable("UserCost");
DataColumn DC0 = new DataColumn("DT_ECode");
DataColumn DC1 = new DataColumn("DT_Area");
tbl2.Columns.Add(DC0);
tbl2.Columns.Add(DC1);
return tbl2;
}
To create DataTable I add using System.Data; namespace

Function that performs operation and keeps data in a table is:


public DataTable getEmpCode(System.DateTime dt1, System.DateTime dt2)
{
string s = "";
tbl1 = createTable();//tbl1 is a DataTable
db = new DataClasses1DataContext();
var objECode = from user in db.UserMgmts
where user.ProjectName == "WapCos"
select user;
//return objECode.ToList();
List<UserMgmt> l = objECode.ToList();
int intCount = objECode.Count();
for(int i = 0; i < intCount; i++)
{
drw1 = tbl1.NewRow();
drw1[0] = l[i].ECode.ToString();
s= getCost1(l[i].ECode.ToString(), dt1, dt2);
//s is some manipulated value against every ECode by another function
//getCost1(string empCode,date1,date2){some codes...}
drw1[1] = s;
tbl1.Rows.Add(drw1);
}
return tbl1;
}

My objective is to use tbl1 data on Page.xaml.cs page.Then what should be another way to use this tabular data on Page.xaml.cs page instead of DataTable. Cry | :((

modified on Wednesday, November 11, 2009 12:37 AM

AnswerRe: How to use ref keyword in silver light application Pin
Mark Salsbery10-Nov-09 18:17
Mark Salsbery10-Nov-09 18:17 
GeneralRe: How to use ref keyword in silver light application Pin
rag_Singh11-Nov-09 0:45
rag_Singh11-Nov-09 0:45 
GeneralRe: How to use ref keyword in silver light application Pin
Mark Salsbery11-Nov-09 9:50
Mark Salsbery11-Nov-09 9:50 
QuestionTreeViewItem style [modified] Pin
hb521342147-Nov-09 6:13
hb521342147-Nov-09 6:13 

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.