|  | 
	
	
	| Rank: Member Groups: Member
 
 Joined: 4/15/2009
 Posts: 14
 
 | 
		    I am binding a web grid to a dataset.  I check the item count after binding and see the items and count correctly.  Then I am selecting an item in the grid and trying to get the selectedindex.  I am getting an index out of range error (-1).  When I check the items.count property it is 0.
		 | 
|  | 
	
	
	| Rank: Administration Groups: Administration
 
 Joined: 5/27/2007
 Posts: 24,425
 
 | 
		    Hi,
 Can you check whether you have view state enabled?
 
 Thanks!
 | 
|  | 
	
	
	| Rank: Member Groups: Member
 
 Joined: 4/15/2009
 Posts: 14
 
 | 
		    Yes EnableViewState is set to true.  
		 | 
|  | 
	
	
	| Rank: Administration Groups: Administration
 
 Joined: 5/27/2007
 Posts: 24,425
 
 | 
		    Hi,
 In that case we will need you to isolate the problem into a separate test project so that we can run it here to take a look. We will PM you as to where to send the test project.
 
 Thanks!
 | 
|  |