AuthorQuestion
Silverlight dataGrid Control
Posted on: 17 Dec 2012
silverlightapplication1.rar 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 !!




Riddhi
[ + ]
AuthorReply
Dinesh Bhoje
  • 0
  • 0
accepted
Re: Silverlight dataGrid Control
Posted on: 11 Jan 2013   Accepted Answer
Hi,

In XAML specify columns to display OR simply set AutoGenerateColumns= true.

Will work it..

Re: Silverlight dataGrid Control
Posted on: 21 Jan 2013  
Hi...

I did not specify columns in XAML  File...

Instead.... I did AutoGenerateColumns=true and ForeGroundColour = Black.

This worked....

Hope this helps others also...

Riddhi
SPONSORED BY
  • PDF reports have never been easier to create. With our included WYSIWYG Designer, you can layout your reports, set up your data source and let DynamicPDF ReportWriter do the rest.