开发者

how to find whether datacolumn row value contains string or integer

开发者 https://www.devze.com 2023-01-07 20:34 出处:网络
i have an datatablewith columnunit. here column nameis unit unit开发者_如何学编程 abc 123 ass ttt

i have an datatable with column unit. here column name is unit

unit

开发者_如何学编程

abc

123

ass

ttt

here i need to check whether the row value conatins string or integer

thanks prince


DataColumn has a DataType property - this will tell you what the column is using.


here are some examples on how you can check this. But you question is not to clear, when and how do you need to check the values?

http://social.msdn.microsoft.com/forums/en-US/winforms/thread/84990ad2-5046-472b-b103-f862bfcd5dbc/ http://www.thescarms.com/dotnet/IsNumeric.aspx

0

精彩评论

暂无评论...
验证码 换一张
取 消