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
150
key not found error
posted

I have defined one ultradatasource.In that i defined varous columns with their key.I placed a wingrid in the form.I set ultradatasource as datasource of this datagrid.I defined varios columns of this grid.I set their key values similar to ultradatasource.

When in grid's InitializeRow event i am accessing

e.Row.Cells["iStatus"].Value = "Select"

 

Then it is giving error "key not found"

 I cannot understand why this error is coming

 

  • 2765
    posted

    Make sure tha "iStatus" column exist in your data source. Most of the time this error is being generated when there is no matching column in the data source.

     

    Thanks,