[Mono-bugs] [Bug 672050] New: Inconsistency - Data binding to the empty datatable

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Tue Feb 15 06:38:40 EST 2011


https://bugzilla.novell.com/show_bug.cgi?id=672050

https://bugzilla.novell.com/show_bug.cgi?id=672050#c0


           Summary: Inconsistency - Data binding to the empty datatable
    Classification: Mono
           Product: Mono: Class Libraries
           Version: 2.8.x
          Platform: PC
        OS/Version: openSUSE 11.3
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: Sys.Data
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: mkral at sygnity.pl
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---
           Blocker: ---


Created an attachment (id=414116)
 --> (http://bugzilla.novell.com/attachment.cgi?id=414116)
Sample demo

Description of Problem:

When I'm binding RadGrid to the empty datatable then the exception is thrown as
below. Under MS.NET it works correctly, the empty grid with column names is
displayed.

System.InvalidOperationException: The source contains no DataRows
  at System.Data.DataTableExtensions.CopyToDataTable[DataRow] (IEnumerable`1
source) [0x00000] in <filename unknown>:0 
  at System.Data.DataTableExtensions.AsDataView[DataRow]
(System.Data.EnumerableRowCollection`1 source) [0x00000] in <filename
unknown>:0 
  at System.Data.DataTableExtensions.AsDataView (System.Data.DataTable table)
[0x00000] in <filename unknown>:0 
  at Telerik.Web.UI.GridEnumerableFromDataView..ctor
(Telerik.Web.UI.GridTableView owner, System.Data.DataView dataView, Boolean
autoGenerateColumns, Telerik.Web.UI.GridColumnCollection presentColumns,
System.String[] additionalField, Boolean retrieveAllFields, Boolean
enableSplitHeaderText) [0x00000] in <filename unknown>:0 
  at Telerik.Web.UI.GridDataSourceHelper.CreateGridEnumerable
(Telerik.Web.UI.GridTableView owner, IEnumerable enumerable, Boolean
caseSensitive, Boolean autoGenerateColumns, Telerik.Web.UI.GridColumnCollection
presentColumns, System.String[] additionalField, Boolean retrieveAllFields,
Boolean enableSplitHeaderText) [0x00000] in <filename unknown>:0 
  at Telerik.Web.UI.GridDataSourceHelper.GetResolvedDataSource
(Telerik.Web.UI.GridTableView owner, System.Object dataSource, System.String
dataMember, Boolean caseSensitive, Boolean autoGenerateColumns,
Telerik.Web.UI.GridColumnCollection presentColumns, System.String[]
additionalField, Boolean retrieveAllFields, Boolean enableSplitHeaderText)
[0x00000] in <filename unknown>:0 
  at Telerik.Web.UI.GridTableView.get_ResolvedDataSource () [0x00000] in
<filename unknown>:0 
  at Telerik.Web.UI.GridTableView.CreateChildControls (IEnumerable dataSource,
Boolean useDataSource) [0x00000] in <filename unknown>:0 
  at System.Web.UI.WebControls.CompositeDataBoundControl.PerformDataBinding
(IEnumerable data) [0x00000] in <filename unknown>:0 
  at System.Web.UI.WebControls.DataBoundControl.InternalPerformDataBinding
(IEnumerable data) [0x00000] in <filename unknown>:0 
  at System.Web.UI.WebControls.DataBoundControl.OnSelect (IEnumerable data)
[0x00000] in <filename unknown>:0 
  at System.Web.UI.DataSourceView.Select
(System.Web.UI.DataSourceSelectArguments selectArgs,
System.Web.UI.DataSourceViewSelectCallback callBack) [0x00000] in <filename
unknown>:0 
  at System.Web.UI.WebControls.DataBoundControl.PerformSelect () [0x00000] in
<filename unknown>:0 
  at Telerik.Web.UI.GridTableView.PerformSelect () [0x00000] in <filename
unknown>:0 
  at System.Web.UI.WebControls.BaseDataBoundControl.DataBind () [0x00000] in
<filename unknown>:0 
  at Telerik.Web.UI.GridTableView.DataBind () [0x00000] in <filename unknown>:0 
  at Telerik.Web.UI.RadGrid.DataBind () [0x00000] in <filename unknown>:0 
  at Telerik.Web.UI.RadGrid.AutoDataBind (GridRebindReason rebindReason)
[0x00000] in <filename unknown>:0 
  at Telerik.Web.UI.RadGrid.OnLoad (System.EventArgs e) [0x00000] in <filename
unknown>:0 
  at System.Web.UI.Control.LoadRecursive () [0x00000] in <filename unknown>:0 
  at System.Web.UI.Control.LoadRecursive () [0x00000] in <filename unknown>:0 
  at System.Web.UI.Control.LoadRecursive () [0x00000] in <filename unknown>:0 
  at System.Web.UI.Page.ProcessLoad () [0x00000] in <filename unknown>:0 
  at System.Web.UI.Page.ProcessPostData () [0x00000] in <filename unknown>:0 
  at System.Web.UI.Page.InternalProcessRequest () [0x00000] in <filename
unknown>:0 
  at System.Web.UI.Page.ProcessRequest (System.Web.HttpContext context)
[0x00000] in <filename unknown>:0 


Steps to reproduce the problem:
1. Run the attached demo

Actual Results:
An invalid operation exception

Expected Results:
Empty grid with column names

How often does this happen? 
Always

Additional Information:
It's related only to the Telerik DLLs for the 3.5 framework, with 2.0 it's ok.

-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.


More information about the mono-bugs mailing list