以相同的形式将数据从绑定的datagridview传输到未绑定的datagridview [英] Transfer data from a bound datagridview to unbound datagridview on same form

查看:70
本文介绍了以相同的形式将数据从绑定的datagridview传输到未绑定的datagridview的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要知道如何将绑定数据从datagridview传输到未绑定datagridview.

数据传输将在datagridview行的click事件上发生,以便我可以选择要传输的数据.

然后,我将一个单元格中的一些数字总计到一个文本框.

我可以使用文本框执行此操作,但随后必须使用定界符,并且不确定如何使用列表框.

I need to know how to transfer bound data from a datagridview to an unbound datagridview.

The data transfer would happen on a click event of the datagridview rows so that I can choose what data to transfer over.

I am then totaling up some numbers in a cell to a textbox.

I can do this with a textbox but then I have to use a delimiter and not sure how to do it with a listbox.

Is is possible to copy data over at runtime this way?

推荐答案

可能的方法

首先使用rowcount计数所有行,然后找到您选择的行并从同一数据集中获取数据并将其绑定.
it''s posible

1st count the all rows using rowcount.and find the row which row u r selecting and get the data from same data set bind it.


这篇关于以相同的形式将数据从绑定的datagridview传输到未绑定的datagridview的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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