数据集中的值未分配 [英] The value from the dataset is not assigning

查看:103
本文介绍了数据集中的值未分配的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Dim dr()As DataRow = dtReport.Select(RePrint = True)



这是我的代码



i可以在dtReport中看到RePrint值(在数据集可视化器中),但是当重新打印的值为true时,该值不会被分配给dr(),

它应该将数据集行发送给dr()。



请帮帮我

谢谢



我尝试了什么:



i尝试

Dim dr()As DataRow = dtReport.Select(RePrint ='True')

Dim dr() As DataRow = dtReport.Select("RePrint = True")

this is my code

i can see the RePrint value (in dataset visualizer) in dtReport but the value is not getting assigned to dr(),
when the value of the Reprint is "true" it should send the dataset row to the dr().

please help me out
thank you

What I have tried:

i tried
Dim dr() As DataRow = dtReport.Select("RePrint = 'True'")

推荐答案

参考这个



refer this

Dim dt As DataTable = New DataTable
dt.Columns.Add("RePrint", GetType(System.Boolean))
dt.Rows.Add(true)
dt.Rows.Add(false)
Dim rows() As DataRow = dt.Select("RePrint = true")
Dim count As Integer = rows.Length' 1  


这篇关于数据集中的值未分配的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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