VB code
Sub dgAss_ItemDataBound(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.DataGridItemEventArgs) Handles dgAss.ItemDataBound
Dim rbl As RadioButtonList
Dim y As TextBox
Dim i As Integer
For i = 0 To dgAss.Items.Count - 1
rbl = dgAss.Items(i).FindControl("rbtnAss")
y = dgAss.Items(i).FindControl("txtScore")
Dim drv As DataRowView = TryCast(e.Item.DataItem, DataRowView)
If rbl.SelectedIndex <> -1 Then
y.Text = rbl.SelectedItem.Value
Else
y.Text = 0
End If