[Mono-bugs] [Bug 472222] New: BoundField.GetBoundFieldValue Problem

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Tue Feb 3 20:12:08 EST 2009


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


           Summary: BoundField.GetBoundFieldValue Problem
    Classification: Mono
           Product: Mono: Class Libraries
           Version: 2.2.x
          Platform: All
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: Sys.Web
        AssignedTo: mhabersack at novell.com
        ReportedBy: zafar.ahmad at ebitlogix.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---


Description of Problem: .net framework does allow the following <asp:BoundField
HeaderText="Anything" DataField=""    >  or <asp:BoundField HeaderText="Rate" 
>
in the gridview which creates a blank field in grid. but Mono does not. 

Steps to reproduce the problem:
1. Create a aspx with a GridView control with a bound field and do not specify
DataField property or set DataField = ""

2. Bind the gridview with any source


Actual Results: 

System.Web.HttpException: Property a not found in System.Data.DataRowView


Expected Results:

Page should be loaded properly with blank field in gridview

How often does this happen? 
Always

Additional Information:

System.Web.HttpException: Property a not found in System.Data.DataRowView  at
System.Web.UI.DataBinder.GetPropertyValue (System.Object container,
System.String propName) [0x00000]   at
System.Web.UI.WebControls.BoundField.GetBoundValue (System.Web.UI.Control
controlContainer) [0x00000]   at System.Web.UI.WebControls.BoundField.GetValue
(System.Web.UI.Control controlContainer) [0x00000]   at
System.Web.UI.WebControls.BoundField.OnDataBindField (System.Object sender,
System.EventArgs e) [0x00000]   at System.Web.UI.Control.OnDataBinding
(System.EventArgs e) [0x00000]   at System.Web.UI.Control.DataBind (Boolean
raiseOnDataBinding) [0x00000]   at System.Web.UI.Control.DataBind () [0x00000] 
 at System.Web.UI.Control.DataBindChildren () [0x00000]   at
System.Web.UI.Control.DataBind (Boolean raiseOnDataBinding) [0x00000]   at
System.Web.UI.Control.DataBind () [0x00000]   at
System.Web.UI.WebControls.GridView.CreateChildControls (IEnumerable data,
Boolean dataBinding) [0x00000]   at
System.Web.UI.WebControls.CompositeDataBoundControl.PerformDataBinding
(IEnumerable data) [0x00000]   at
System.Web.UI.WebControls.GridView.PerformDataBinding (IEnumerable data)
[0x00000]   at
System.Web.UI.WebControls.DataBoundControl.InternalPerformDataBinding
(IEnumerable data) [0x00000]   at
System.Web.UI.WebControls.DataBoundControl.OnSelect (IEnumerable data)
[0x00000]   at System.Web.UI.DataSourceView.Select
(System.Web.UI.DataSourceSelectArguments selectArgs,
System.Web.UI.DataSourceViewSelectCallback callBack) [0x00000]   at
System.Web.UI.WebControls.DataBoundControl.PerformSelect () [0x00000]   at
System.Web.UI.WebControls.BaseDataBoundControl.DataBind () [0x00000]   at
System.Web.UI.WebControls.GridView.DataBind () [0x00000]   at
AbsoluteEye.CodeManager.Web.UI.Currency.LoadEntity () [0x00000]   at
AbsoluteEye.CodeManager.Web.UI.Currency.Page_Load (System.Object sender,
System.EventArgs e) [0x00000]   at System.Web.UI.Control.OnLoad
(System.EventArgs e) [0x00000]   at
AbsoluteEye.CodeManager.Web.UI.AnonymousBasePage.OnLoad (System.EventArgs e)
[0x00000]   at AbsoluteEye.CodeManager.Web.UI.BasePage.OnLoad (System.EventArgs
e) [0x00000]   at System.Web.UI.Control.LoadRecursive () [0x00000]   at
System.Web.UI.Page.ProcessLoad () [0x00000]   at
System.Web.UI.Page.ProcessPostData () [0x00000]   at
System.Web.UI.Page.InternalProcessRequest () [0x00000]

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


More information about the mono-bugs mailing list