|  | 
	
	
	| Rank: Newbie Groups: Member
 
 Joined: 11/17/2011
 Posts: 9
 
 | 
		    Hi,
 How do I pass the ID Grid to a TextBox?
 How do I make a textBox receives the ID Grid?
 
 Thank you!
 | 
|  | 
	
	
	| Rank: Administration Groups: Administration
 
 Joined: 5/27/2007
 Posts: 24,425
 
 | 
		    Hi,
 I am not sure if I understand your question. If you want to get the Grid's ID, you use it's ID property. If you want to set a TextBox's content, you set the TextBox's Value property.
 
 Thanks
 | 
|  | 
	
	
	| Rank: Newbie Groups: Member
 
 Joined: 11/17/2011
 Posts: 9
 
 | 
		    In Gridview I use
 TextBox.Text Grid.SelectedDataKey = ["id"]. ToString ();
 
 What is the syntax of the EO Grid?
 | 
|  | 
	
	
	| Rank: Administration Groups: Administration
 
 Joined: 5/27/2007
 Posts: 24,425
 
 | 
		    Hi,
 You will do something like this:
 
 Grid.Items[Grid.SelectedItemIndex].Key
 
 Obviously there are other things such as you must check whether Grid.SelectedItemIndex is non-negative first (when there is no selected item, Grid.SelectedItemIndex is -1). You can take a look of the reference section to find out more details about each properties.
 
 Thanks!
 | 
|  |