[英]How to check in gridview that it contains any string or not from vb.net?
我有一個gridview。 我可以檢查一欄中是否包含任何字符串或數字的方式。 如果它包含任何比我想要做的功能更多的字符串
創建一個循環通過該列中每個項目的循環,並將該值作為strValue
傳遞給此處理程序:
If String.IsNullOrEmpty(strValue) = False Then
' Do something if it contains something
end if
參考: https : //docs.microsoft.com/zh-cn/dotnet/api/system.string.isnullorempty?view=netframework-4.7.2
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.