Click here to Skip to main content
15,884,176 members
Home / Discussions / WPF
   

WPF

 
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 
AnswerRe: TreeViewItem style Pin
hb521342147-Nov-09 7:29
hb521342147-Nov-09 7:29 
QuestionSilverlight Fun Badge Pin
Raj Lal6-Nov-09 11:39
professionalRaj Lal6-Nov-09 11:39 
AnswerRe: Silverlight Fun Badge Pin
Mark Salsbery7-Nov-09 7:35
Mark Salsbery7-Nov-09 7:35 
QuestionTCP Cross Domain Access Policy Pin
earlgraham6-Nov-09 9:31
earlgraham6-Nov-09 9:31 
AnswerRe: TCP Cross Domain Access Policy Pin
Mark Salsbery6-Nov-09 9:43
Mark Salsbery6-Nov-09 9:43 
QuestionTrust Not Granted (WPF Browser application) C# Pin
42774806-Nov-09 6:41
42774806-Nov-09 6:41 
AnswerRe: Trust Not Granted (WPF Browser application) C# Pin
42774806-Nov-09 8:16
42774806-Nov-09 8:16 
QuestionWPF DataGrid Upper left corner, what is it? Pin
DahrkDaiz6-Nov-09 3:33
DahrkDaiz6-Nov-09 3:33 
AnswerRe: WPF DataGrid Upper left corner, what is it? Pin
Mark Salsbery6-Nov-09 10:21
Mark Salsbery6-Nov-09 10:21 
GeneralRe: WPF DataGrid Upper left corner, what is it? Pin
DahrkDaiz10-Nov-09 3:57
DahrkDaiz10-Nov-09 3:57 
GeneralRe: WPF DataGrid Upper left corner, what is it? Pin
Mark Salsbery10-Nov-09 6:24
Mark Salsbery10-Nov-09 6:24 
QuestionWPF and ASP.NET Pin
rastaVnuce5-Nov-09 23:46
rastaVnuce5-Nov-09 23:46 
AnswerRe: WPF and ASP.NET Pin
Pete O'Hanlon6-Nov-09 0:03
mvePete O'Hanlon6-Nov-09 0:03 

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.