[Mono-bugs] [Bug 74804][Wis] New - Datagrid error when bound to a IDataReader that is empty select result

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Tue, 3 May 2005 00:53:48 -0400 (EDT)


Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.

Changed by cmorgan@alum.wpi.edu.

http://bugzilla.ximian.com/show_bug.cgi?id=74804

--- shadow/74804	2005-05-03 00:53:48.000000000 -0400
+++ shadow/74804.tmp.20067	2005-05-03 00:53:48.000000000 -0400
@@ -0,0 +1,47 @@
+Bug#: 74804
+Product: Mono: Class Libraries
+Version: 1.1
+OS: 
+OS Details: debian unstable
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Wishlist
+Component: Sys.Web
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: cmorgan@alum.wpi.edu               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: Datagrid error when bound to a IDataReader that is empty select result
+
+Using mono 1.1.6
+
+Description of Problem:
+Datagrid returns error when passed an IDataReader with an empty sql result.
+
+Steps to reproduce the problem:
+1. Query a database with a query that returns no rows
+2. testGrid.DataSource=IDataReader;
+3. testGrid.DataBind();
+
+Actual Results:
+
+Server error in '/test' application
+DataGrid_NoAutoGenColumns: testGrid
+Description: Error processing request.
+
+Error Message: HTTP 500. DataGrid_NoAutoGenColumns: testGrid 
+
+
+Expected Results:
+An empty grid?
+
+
+How often does this happen? 
+Every time.
+
+Additional Information:
+Shouldn't the datagrid should be populated with no rows but with the
+columns of the return set?