从DataGrid中读取行和列 [英] Reading rows and columns from a DataGrid

查看:60
本文介绍了从DataGrid中读取行和列的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我觉得很惊讶,我很快就能找到晦涩难懂的问题的答案

但简单的躲避我。


我有一个数据网格,我已经束缚,完全没问题。现在我想以编程方式 -

- 遍历每一行,提取每个

列中保存的数据。


我可以我们弄清楚如何做到这一点。它必须简单,有人可以吗

帮我吗?

-

------------ ----------------------------

魔法不在魔术师的手中,而是在脑海中观众。


Animadverto est verus

I find it amazing that I am quickly able to find answers to obscure questions
but simple ones elude me.

I have a datagrid that I''ve bound, no problem at all. Now I want to -
programatically - loop through each row, extracting the data held in each
column.

I can''t figure out how to do that. It has to be simple, can somebody please
help me?
--
----------------------------------------
Magic is not in the hands of the magician but in the mind of the audience.

Animadverto est verus

推荐答案




那个;不是一个很好的主意,你看到数据网格只是为了让b / b $ b使数据可见,而不是检索它。对于那个使用绑定的来源。


原因是数据本身可能会被转换,也许你有一个

列,在数据源中是一个双精度或一个小数,并且在网格中显示为使用locate in格式化的货币
place(
Hi,

That;s not a very good idea to do, you see the datagrid is meant only to
make the data visible, not to retrieve it. for that use the binded source.

The reason is that the "data" itself may be transformed, maybe you have a
column that in the datasource was a double or a decimal and in the grid is
displayed as a currency formatted using the locate in place (


XX,XXX.YY或
XX,XXX.YY or


XX.XXX,YY)转换回原来的值可能很难


欢呼,

-

Ignacio Machin,

ignacio.machin AT dot.state.fl.us

佛罗里达州交通局

Rik Brooks < RB ***** @ hhcc.com.donotspam>在消息中写道

新闻:B0 ********************************** @ microsof t.com ...
XX.XXX,YY ) convert that back to the original value can be difficult

cheers,

--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation
"Rik Brooks" <rb*****@hhcc.com.donotspam> wrote in message
news:B0**********************************@microsof t.com...
我觉得很惊讶,我很快就能找到模糊的问题的答案
但简单的问题让我无法回答。
我有一个数据网格,我已经绑定,没有任何问题。现在我想 - 以编程方式 - 循环遍历每一行,提取每个
列中保存的数据。

我无法弄清楚如何做到这一点。它必须简单,有人可以帮助我吗?
-
-------------------- --------------------
魔术不在魔术师手中,而是在观众心中。

Animadverto est verus
I find it amazing that I am quickly able to find answers to obscure
questions
but simple ones elude me.

I have a datagrid that I''ve bound, no problem at all. Now I want to -
programatically - loop through each row, extracting the data held in each
column.

I can''t figure out how to do that. It has to be simple, can somebody
please
help me?
--
----------------------------------------
Magic is not in the hands of the magician but in the mind of the audience.

Animadverto est verus



这篇关于从DataGrid中读取行和列的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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