嗨
我正在开发一个使用WCF服务与数据库进行交互的Silverlight Web应用程序.我将数组列表从DAL层返回到Xaml.cs
,但无法将其绑定到Datagrid.
我的代码部分如下:
Hi
I am developing a Silverlight web application that uses WCF services to interact with database. I return a arraylist from DAL layer to Xaml.cs
but could not bind it to Datagrid.
My Code section is as follows:
if (e.Error != null)
{
//Error Condition
}
else
{
dataGrid1.ItemsSource = e.Result;
}
如果我使用datagrid1.ItemSource = e.Result;
..
,则数据未绑定
请在这方面提出您的宝贵建议.
谢谢
Naresh.
The data is not getting binded if I use datagrid1.ItemSource = e.Result;
..
Please give your valuable suggestions in this regard.
Thanks
Naresh.