I make my first experience with the G开发者_运维技巧ridControl und WinForms generally. I bind the data this way: ContactBindingSource.DataSource = sess.Query().ToList(); This works fine! But the next step is to insert, edit and delete new records. Which events are important (GridControl and BindingSource) to handle my NHibernate operation.
As far as I see you are binding the grid to BindingSource component. If so, the best solution for you would be to use its ListChanged event. Does this help?
the ListChanged event only fires by new records, or delete record. I can use CurrentItemChanges, but this does not work with the details. And I have a lot details
精彩评论