将所有重复记录在一个数据网格中输入到另一个数据网格 [英] entry of all duplicate record in one datagrid to another datagrid

查看:65
本文介绍了将所有重复记录在一个数据网格中输入到另一个数据网格的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

将一个数据网格中的所有重复记录输入到vb.net中的另一个数据网格中.将约束与网格的行和列进行比较.如果行列中的两个数据相等,则将其存储在另一个网格中就很容易.


___________________________________________________________________________________

如果不明白,请先尝试发布代码.....

希望您能提供比我更好的帮助....................


,您可以在数据源的每一行上运行一个循环.在这里,您可以创建两个差异表,一个用于主数据网格,另一个用于其他重复行.


entry of all duplicate record in one datagrid to another datagrid in vb.net

解决方案

Keep one item as a primary constraint it makes task so easy and quickly. Compare constraint with row and column of the grid. If both data in row column is equal store it in another grid this make''s easy.


___________________________________________________________________________________

Try it first if not understand post the code.....

Hoping you to help better than me....................


you can run a loop on each row of datasource.And here you can create two diffrent tables one for main datagrid and one for other duplicate rows.


这篇关于将所有重复记录在一个数据网格中输入到另一个数据网格的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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