如何从Gridview中读取特定ID的所有值 [英] How Can I Read All The Values From The Gridview For A Particular Id

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

问题描述

如何读取数据网格中特定ID的所有值?



您好,



i有一个带有6列的数据网格,其中一列是id列。



i想要读取具有相同id的数据网格中的所有值 - >例如:id = 4



我希望将所有值存储在不同的字符串中。



喜欢,如果我有2排



这意味着我有12个单元







就是这样









现在,我希望所有12个值都在不同的字符串中以供进一步使用....谢谢,等待你的答案....

How can i read all the values from a datagrid for a particular id ?

Hi,

i have a datagrid with 6 columns one of the columns is the id column.

i want to read all the values from the datagrid having same id -> for example: id = 4

and i want to store all the values in a different string.

like, if i have 2 rows

this means i have 12 cells



that's it




now, i want all the 12 values in a different string for further use.... Thanks, Waiting for your Answer....

推荐答案

如果你想使用LINQ,此链接 [ ^ ]可以为您提供帮助。
If you want to use LINQ, this link[^] may help you.


这篇关于如何从Gridview中读取特定ID的所有值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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