>Hello all,
>
>I'm a newbie to ASP.NET (as you will see).
>
>I've a webform with a Gridview, bound to a dataset. The dataset is filled by a Foxpro.dll delivering XML.
>
>Everything works fine, the Grid is filled with data from a foxpro-dbf, just like I want, AllowPaging is True, so I get the first 10 records.
>
>1.
>I get an error (The GridView 'grdKlanten' fired event PageIndexChanging which wasn't handled.) when I press '2' to page to record 11-20. When reading about the gridview, I undertsand I have the wrong type of dataobject bound to the gridview, which doesn't allow paging. I do not have the slightest idea what to do next.
>2.
>When setting autogenerateditbutton (which works fine) and I press Edit, i get an error too: The GridView 'grdKlanten' fired event RowEditing which wasn't handled.
>
>Any ideas?
>
>TIA
>
>Lennert
I think you would need to add these events. In the PageIndexChanging event as I recall you need to set current PageIndex and the do Grid.DataBind()
If it's not broken, fix it until it is.
My Blog