开发者

Details view C#

开发者 https://www.devze.com 2023-03-31 13:23 出处:网络
Virtually everything i have googled describes the above perfectly in master/d开发者_如何学Goetails view on one form. Is there anyway to do this on two forms? Basically what i want to achieve is to hav

Virtually everything i have googled describes the above perfectly in master/d开发者_如何学Goetails view on one form. Is there anyway to do this on two forms? Basically what i want to achieve is to have my Main Form display a datagridview (with binding source, tableadapter etc) and be able to double click a record in the datagridview and have it open a new form with a details view bound to the record that was selected on the main form datagridview.

I've seen a few pseudo code examples on how to do this but would greatly appreciate a link or C# code on how to do this.


you just have to extract the selected value and have to give it to your new Form (for example in it's constructor) - the rest should be straight forward and the same as in master/detail on one form

0

精彩评论

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