简体   繁体   中英

Details view C#

Virtually everything i have googled describes the above perfectly in master/details 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.

Thanks in advance.

您只需要提取选定的值并将其提供给新的Form(例如在其构造函数中),其余的就应该简单明了,并且与一种形式的master / detail相同

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM