I am attempting to retrieve values from a datagrid, based on a template check box column. The ultimate goal will be to create an XML file based on the items selected by the user. At the moment I am attempting to have the selection written to a Label but not getting a value. The code I am using is below.<BR><BR>All help will be very welcome.<BR><BR>Private Sub Button1_Click(ByVal sender As System.Object,ByVal e As System.EventArgs)<BR><BR> Dim cb As CheckBox<BR> Dim dgi As DataGridItem<BR><BR> For Each dgi In grid.Items<BR><BR> cb = CType(dgi.Cells(0).Controls(1), CheckBox)<BR><BR> If cb.Checked Then<BR><BR> Dim idcol as TableCell = dgi.Cells(0)<BR> Label1.Text = idcol.Text<BR><BR> End If<BR><BR> Next<BR><BR>End Sub<BR>