Can I use excel logic function "if" in DataTable or dataGridView? : <p>I have a program in VB.NET with a table which would like to run the excel logic function "if" to complete the third column:</p>

<p>My code for DT and DGV</p>

<pre><code>Dim DGV As New DataGridView
    Dim DT As New DataTable
    If DGV.ColumnCount &gt; 0 Then
        Try
            DT.Columns.Remove("Nº")
            DT.Columns.Remove("Q")
            DT.Columns.Remove("k")
            DT.Clear()
        Catch g As DataException
            Console.WriteLine("Exception Of type {0} occurred.", g.GetType().ToString())
        End Try
    End If
    DGV.SetBounds(12, 120, 865, 460)
    Controls.Add(DGV)
    DT.Columns.Add("Nº", GetType(Int32))
    DT.Columns.Add("Q", GetType(Double))
    DT.Columns.Add("k", GetType(String))
    For I = 1 To 100
        DT.Rows.Add(I, I * 3)
    Next (I)
    Me.DGV.AutoSizeColumnsMode = DataGridViewAutoSizeColumnsMode.ColumnHeader
    DGV.ReadOnly = True
    DGV.DataSource = DT
</code></pre>

<p>It's possible? Examples in C# also are accepts.</p>

<p>Thanks!</p>
