2006-09-20 Gonzalo Paniagua Javier <gonzalo@ximian.com>
[mono.git] / mcs / class / System.Web / System.Web.UI.WebControls / AccessDataSourceView.cs
index f0003bbc71e511251aea6bb037b567207f8be205..03c4a25fa2e03a8405ee2b6c1afd21255a7f154d 100644 (file)
@@ -57,7 +57,7 @@ namespace System.Web.UI.WebControls {
                                                DataSourceSelectArguments arguments)
                {
                        oleCommand = new OleDbCommand (this.SelectCommand, oleConnection);
-                       SqlDataSourceCommandEventArgs cmdEventArgs = new SqlDataSourceCommandEventArgs (oleCommand);
+                       SqlDataSourceSelectingEventArgs cmdEventArgs = new SqlDataSourceSelectingEventArgs (oleCommand, arguments);
                        OnSelecting (cmdEventArgs);
                        IEnumerable enums = null; 
                        Exception exception = null;
@@ -65,7 +65,7 @@ namespace System.Web.UI.WebControls {
                        try {
                                System.IO.File.OpenRead (dataSource.DataFile).Close ();
                                oleConnection.Open ();
-                               reader = oleCommand.ExecuteReader ();
+                               reader = (OleDbDataReader)oleCommand.ExecuteReader ();
                        
                                //enums = reader.GetEnumerator ();
                                throw new NotImplementedException("OleDbDataReader doesnt implements GetEnumerator method yet");