ChewDoggie
Programmer
Hello All,
I have a Custom Class that is bound to several DataGridView controls elsewhere in my forms and is defined as follows:
But this code barfs on the GetEnumerator method. Does anyone know how to implement GetEnumerator for this type of class definition ?
Thanks !
Chew
10% of your life is what happens to you. 90% of your life is how you deal with it.
I have a Custom Class that is bound to several DataGridView controls elsewhere in my forms and is defined as follows:
Code:
namespace Collections.MyCollections
{
[DataObject]
public class clsGenericList : BindingList<clsGeneric>
{
public clsGenericList()
{
}
//....other methods here
public IEnumerator<clsGeneric> GetEnumerator()
{
return this.GetEnumerator();
}
IEnumerator IEnumerable.GetEnumerator()
{
return this.GetEnumerator();
}
}
}
But this code barfs on the GetEnumerator method. Does anyone know how to implement GetEnumerator for this type of class definition ?
Thanks !
Chew
10% of your life is what happens to you. 90% of your life is how you deal with it.