Search
 
SCRIPT & CODE EXAMPLE
 

CSHARP

c# todatatable nullable

<Extension()>
Public Function HasNull(dataTable As DataTable) As Boolean
    If dataTable Is Nothing Then
        Throw New ArgumentNullException("dataTable must be initialized", "dataTable")
    End If
    Dim allColumns = dataTable.Columns.Cast(Of DataColumn).ToList() ' materialize
    Dim hasNullField As Boolean = dataTable.AsEnumerable().
        Any(Function(row) allColumns.Any(Function(c) row.IsNull(c)))
    Return hasNullField
End Function
Comment

PREVIOUS NEXT
Code Example
Csharp :: flsa itextsharp 
Csharp :: c# codebehind Append div 
Csharp :: polling data source c# using threads 
Csharp :: unity product.hasreceipt 
Csharp :: git change remote origin 
Html :: html yuan symbol 
Html :: html input integer and positive 
Html :: starter data jpa maven dependency 
Html :: text-bold bootstrap 
Html :: sweetalert2 cdn 
Html :: rs logo html 
Html :: ion icon size small 
Html :: include script in html 
Html :: editable div 
Html :: space character in react html 
Html :: no cache html 
Html :: prevent copying text in html 
Html :: Add a viewport meta tag to the document head to set the width of the layout viewport equal to the width of the device and set the initial scale of the viewport to 1.0. 
Html :: make div clickable 
Html :: <noscript<p title="</noscript<img src=x onerror=alert(1)" 
Html :: bootstrap align right 
Html :: how to link external css to html 
Html :: open whatsapp html 
Html :: html minus sign 
Html :: font myriad pro html 
Html :: input focus onload 
Html :: fa fa copy icons 
Html :: html input suggestion 
Html :: how to make images load as you scroll down 
Html :: html void link 
ADD CONTENT
Topic
Content
Source link
Name
7+8 =