We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Object not set error in class

Thread ID:




10947 Feb 17,2004 09:23 PM UTC WinForms 0
Tags: FAQ
Eddie Merrifield
Asked On February 17, 2004 09:23 PM UTC

Hi, I've created a class around the datagrid. This class has methods around the datagrid, doing things like column formatting, giving new headertext on the columns and other things. On my PC, it works great. On a colleagues PC, the following line generates an error: Dim cm As CurrencyManager = CType(BindingContext(Me.DataSource, Me.DataMember), CurrencyManager) The error generated is an "Object not set....." error. when mousing over the line from my PC, the word "BindingContext" has a value of: {System.Windows.Forms.BindingContext}" on her PC, it has a value of Nothing. I'm sure this is the reason for the error, but I do not understand the behavior. Again, the code is wrapped within a class, and called using similar methods. Any ideas? Thanks Eddie


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon