Prashanti_bali
New member
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 aspatagrid control in my aspx page.
Can any body help me.
Thanks,
Prashanti.
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 aspatagrid control in my aspx page.
Can any body help me.
Thanks,
Prashanti.