/[xmltv_parser]/trunk/xmltv_parser/main.cs
ViewVC logotype

Diff of /trunk/xmltv_parser/main.cs

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

--- trunk/xmltv_parser/main.cs	2013/03/10 19:22:06	122
+++ trunk/xmltv_parser/main.cs	2013/03/10 20:19:33	126
@@ -217,7 +217,11 @@
             //source.DataSource = XMLTV.GetPrograms();
             //dataGrid.DataSource = source;
 
-            dataGrid.DataSource = XMLTV.CreateBindingSourceForData(XMLTV.GetPrograms());
+            object datasource = XMLTV.CreateDataSourceFromObject(XMLTV.GetPrograms());
+
+           XMLTV.CreateSorterFromDataSource(ref datasource, "title");
+
+            dataGrid.DataSource = datasource;
 
         }
 

 

  ViewVC Help
Powered by ViewVC 1.1.22