Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
955
DataBinding: 'Infragistics.Web.UI.GridControls.GridRecordItem' does not contain a property with the name
posted

Hi,

i get this error when i Bind an WebDataGrid,  this grid fills with a dataset .. this dataset provides a property called Detalle, but when i rebind many times with a new DataSet,   the application fails and display this error.

DataBinding: 'Infragistics.Web.UI.GridControls.GridRecordItem' does not contain a property with the name 'Detalle'

Below my code ASPX.. anybody knows what happen here?

//////////////////////////////////////////////////////////////////////////

ASPX Code:

visible='<%# esVisible((DataBinder.Eval(((Infragistics.Web.UI.TemplateContainer)Container).DataItem, "Detalle"))%>'

//////////////////////////////////////////////////////////////////////////

CS code:

private bool esVisible(object isVisible)
        {
            if ((int)isVisible == 1)
            {
                return true;
            }
            return false;
        }

//////////////////////////////////////////////////////////////////////////

Regards.

Alfredo Melo xD

Parents
No Data
Reply
  • 7570
    posted

    Hello Alfredo Melo,

    I suggest checking the dataset that is causing the error. You may have to verify if the property exists in the dataset.

    If you have any questions, please let me know.

Children