将选定的电话从一个datagridview移到另一个 [英] Taking selected phone no of one datagridview to another

查看:68
本文介绍了将选定的电话从一个datagridview移到另一个的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

先生您好

我已经将数据从excel工作表中提取到datagridview中,并且我必须从该数据中选择行,然后通过验证电话号码,通过单击将所选数据单击到另一个datagridview中,我必须将数据保存到数据库中.先生,请帮帮我


谢谢与问候

Vasu Hajare

Hello sir

I have taken data from excel sheet into datagridview and from that data i have to choose rows and by button clicking that selected data to another datagridview by validating phone no and i have to save data to database . Please help me sir


Thanks & Regards

Vasu Hajare

推荐答案

反复遍历datagrid的每一行.并检查是否已选中该行,然后将该行添加到 new datatable 中,然后遍历所有行的after循环将该新表绑定到第二个网格...
iterate through each rows of datagrid..and check if it''s selected then add that row into new datatable and after loop through all rows bind that new table to second grid...


这篇关于将选定的电话从一个datagridview移到另一个的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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