Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void SetMasterDetailPositions(int masterId, int detailId)
- {
- var masterPosition = masterBindingSource.Find("id", masterId);
- if (0 <= masterPosition)
- {
- masterBindingSource.Position = masterPosition;
- var detailPosition = detailBindingSource.Find("id", detailId);
- if (0 <= detailPosition)
- {
- detailBindingSource.Position = detailPosition;
- }
- }
- }
- var detailPosition = detailBindingSource.Find("id", detailId);
- System.ArgumentException occurred
- HResult=0x80070057
- Message=DataMember property 'id' cannot be found on the DataSource.
Add Comment
Please, Sign In to add comment