User391134533 posted
Hi Allen, thank's for your replay.
Sorry, let me explain. I'm building an NHibernate ASP.Net application, using NHibernate 2.0.1 and NHibernate.Linq. To use the GridView with NHibernate performing the Edit/Update/Delete functions, I'm also building an DataSourceControl, from this base class.
After reading MSDN docs, and a few tutorials, I was trying to override the
ExecuteUpdate method from my DataSourceView inherited class, to enable the update feature. My method recieved no keys on the
IDictionary keys parameter from GridView on my tests.
Alfter some hacking and refactoring with the code, I discovered my mistake. The GridView attribute
DataKeyNames was empty on the aspx file. So, setting it to the correct value, makes my ExecupteUpdate, and latter the Delete implementation works like a charm!
Thanks for the help, anyway. I'll build a how to for this on my Blog.