Binding an Object to xamDataGrid
-
Hi All, I'm a bit stuck on this and the Infragistics Documentation server has been down all weekend. Would it really hurt to had locally in PDF??? I'm doing this in a button click:
private void btnScanDirectory_Click(object sender, RoutedEventArgs e)
{
object SingleDirectoryResults = SampleSort.DataLayer.ScanSingleDirectoryForFiles.ScanDirectories(@"G:\samples\");
}SingleDirectoryResults is a generic list that implements IEnumerable, how do I go about setting this new dynamic object as the data source for the datagrid?
-
Hi All, I'm a bit stuck on this and the Infragistics Documentation server has been down all weekend. Would it really hurt to had locally in PDF??? I'm doing this in a button click:
private void btnScanDirectory_Click(object sender, RoutedEventArgs e)
{
object SingleDirectoryResults = SampleSort.DataLayer.ScanSingleDirectoryForFiles.ScanDirectories(@"G:\samples\");
}SingleDirectoryResults is a generic list that implements IEnumerable, how do I go about setting this new dynamic object as the data source for the datagrid?
Please have a look at this link on using the ObjectDataProvider in WPF. http://www.beacosta.com/blog/?p=22[^] You will bind your SingleDirectoryResults to the datagrid using the ObjectDataProvider.
Cheers, Karl
» CodeProject 2008 MVP My Blog | Mole's Home Page | How To Create Screen Capture Videos For Your ArticlesJust a grain of sand on the worlds beaches.