Problem in Custom Grid

Prashanti_bali

New member
Joined
Jun 5, 2003
Messages
1
Location
mumbai
Hi,
I created a composite control which extends DataGrid and implements INamingContainer.
I am able to bind it to my Dataset in codebehind(aspx.cs) file,
But when i try to get objectItem of the grid,
DataGridItem objItem = this.Items[0];
It shows me runtime exception saying."System.ArgumentOutOfRangeException: Index was out of range."


where as the same logic works if i use asp:Datagrid control in my aspx page.


Can any body help me.
Thanks,
Prashanti.
 
Back
Top