Hi
I am trying to use the 'select' button to add a RadGrid item to a sort of 'cart' and to
confirm the addition by writing label text. This is the code:
If I leave out the RadGrid1.SelectedValue("Name").Text + part it displays the text when an item is selected.
However with the code as above, it generates an error:
I have spent many unhappy hours with 'null reference exception's in the past ... can you put your
finger on it right away?
Or how should I be doing this?
Thanks a lot!
Clive
I am trying to use the 'select' button to add a RadGrid item to a sort of 'cart' and to
confirm the addition by writing label text. This is the code:
Protected Sub RadGrid1_SelectedIndexChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles RadGrid1.SelectedIndexChanged |
LabelCart.Text = RadGrid1.SelectedValue("Name").Text + " was added to your request list." |
End Sub |
However with the code as above, it generates an error:
System.NullReferenceException: Object variable or With block variable not set |
I have spent many unhappy hours with 'null reference exception's in the past ... can you put your
finger on it right away?
Or how should I be doing this?
Thanks a lot!
Clive