From: <car...@gm...> - 2006-05-30 08:11:11
|
Hello: > OK i found the solution in fact when a control do a databind with a > datareader the overiden GetEnumerator is called and now it returns "New > Dbenumerator(this)" or it sould return "New > DbEnumerator(this,(CommandBehavior.Default != > (CommandBehavior.CloseConnection & this._behavior)));" > > Thanks a lot Carlos for you help and please tell me if this solution is good > for you ? What about this one: return new DbEnumerator(this, this.IsCommandBehavior(CommandBehavior.CloseConnection)); -- Carlos Guzmán Álvarez Vigo-Spain http://carlosga.blogspot.com/ No hay un solo rey que no descienda de un esclavo, ni un esclavo que no haya tenido reyes en su familia. |