开发者

How can I CRUD with, NHibernate, GridControl, BindingSource

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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜