i m new to silverlight4. and i have List
- >
in List
is there any way to bind the same as another way.
please give me solution for the problem.
m using the same as bello, but its not working, its simply bind the arra in a datagrid column, and not the single column.
List
- > listColl = new List
- >();
List
list = dict.Values.ToList();
//GrdQueryResult.ItemsSource = list;
foreach (string[] item in list)
{
List
foreach (string s in item)
{
listString.Add(s);
}
listColl.Add(listString);
}
GrdQueryResult.ItemsSource = listColl;
thanks in advance .
Nilesh Chauhan
Priya LingePosted Aug 1, 2011, 9:44 AM
Make 1 class ,suppose its Member class.
public class Member
{
public string Name { get; set; }
}
Then in Mainpage.xaml.cs ,Take a list.
List dataList = new List();
Member m = new Member();
var tra = new Member
{
Name = "Prakash"
};
dataList.Add(tra);
dataGrid1.ItemsSource = dataList;
You can bind list this way also.
Hope this will help you.
Thanks.