Help! Getting an invisible ID from Data Grid

SolidFX

New Member
Hi,<BR>I was wondering if someone could tell me the syntaxt to get the value of an ID field which I made invisible in my Data Grid. Since it doesn't have a textbox or label to display it, I can't figure out how to get the value.<BR>Any help would be muxh appreciated! <BR>:-)Hi,<BR> I think this line of code might help you.<BR><BR>Sub<BR><BR>Dim myDataGridItem As DataGridItem<BR>Dim lblValue as String<BR><BR>For Each myDataGridItem In Yourgridname.Items<BR><BR>lblValue=http://aspmessageboard.com/archive/index.php/CType(myDataGridItem.FindControl("yourcontrolname"), Label).Text<BR><BR>Next<BR><BR>
 
Back
Top