Duh..
How do I do this? CreditId is my datakey, but I can't seem to get to
it.
Dim dgItem As GridViewRow
For Each dgItem In gridEmployeeCre dits.Rows
If dgItem.DataItem ("CreditId") = 0 Then
Dim textboxCreditDa te As TextBox =
CType(dgItem.Fi ndControl("text boxCreditDate") , TextBox)
textboxCreditDa te.Text = ""
End If
Next
Thanks.
How do I do this? CreditId is my datakey, but I can't seem to get to
it.
Dim dgItem As GridViewRow
For Each dgItem In gridEmployeeCre dits.Rows
If dgItem.DataItem ("CreditId") = 0 Then
Dim textboxCreditDa te As TextBox =
CType(dgItem.Fi ndControl("text boxCreditDate") , TextBox)
textboxCreditDa te.Text = ""
End If
Next
Thanks.
Comment