linq to sql数据绑定到datagrid视图 [英] linq to sql data bindings to datagrid view

查看:81
本文介绍了linq to sql数据绑定到datagrid视图的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

亲爱的朋友,
我要在Windows窗体上显示一个主明细表结构.我有一个与外键相关的头表和明细表.它们之间的关系是一对多的.我需要的是利用linq to sql类在窗体上显示我的数据并绑定数据元素,以便在用户更改元素时将它们映射到表以进行更新.
期待与您相识.
问候.

Dear Friends,
I am to show a master detail table structure on a windows form. I have a header table and a detail table that are related with a foreign key. The relation between them is one to many. what I need is to make use of linq to sql classes to show my data on forms and bind the data elements so that as the user changes elements they map to table for updates.
Looking forward to know from you.
Regards.

推荐答案

检查此链接
使用LINQ to SQL的简单GridView绑定 [
check this link
Simple GridView Binding using LINQ to SQL[^]
--NDK


这篇关于linq to sql数据绑定到datagrid视图的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆