Forums - C# Corner

Forum guidelines
Riddhi Valecha

Riddhi Valecha

  • 225
  • 1k
  • 118k

Silverlight dataGrid Control

Dec 17 2012 3:36 AM
Hi all....

I need help in Silverlight dataGrid Control...

I have to fire the following queries and load data in a grid view in Silverlight:

1) var qry = from t in context.Employees select new {t.EName, t.ESalary, t.DOJ, t.DOB };

2) var qry = from t in context.Employees select t ;
Difference - In first query, only 4 Columns and in second query, all the columns are there.

Please help me out...

The datagrid is not loaded.......

I also have attached my code for reference .......

Thanks all in advance !!

Answers (2)

C# Corner Chandigarh Developer Conference


Spire.Doc - Free .NET Word API
Use Spire.Doc to create, read, write, print, and convert word documents to OpenXML, RTF, TXT, XPS, EPUB, EMF, HTML, Image and PDF.