I have a DG with an image button in it. When clicked I am going to run a Stored Proc and populate another DG. I&#039;ve got it working except for getting the values from the row that was clicked. I keep getting the following error: System.NullReferenceException: Object variable or With block variable not set.<BR><BR><BR>&#060;asp:ImageButton ImageUrl="images/icons/DollarSign.gif" CommandName="OpenAltItems" ID="btnAltItemIcon" Runat="server" /&#062;<BR><BR><BR><BR>Sub dgOrders_ItemCommand(ByVal sender As System.Object, ByVal e As DataGridCommandEventArgs)<BR><BR> If e.CommandName = "OpenAltItems" Then<BR><BR> Dim MDNo As String = e.Item.DataItem("MDNo")<BR><BR> lblBrandName.Text = MDNo<BR><BR><BR> End If<BR><BR> End Sub<BR><BR>Thanks for any help!<BR>David