M
Mark
All-
I'm basically creating a user control which contains a datagrid that will be
used throughout our application by all pages.
My user control contains a datagrid control and I expose methods to add a
bound column to the grid.
So when they call this function and pass in the field name and title, I
dynamically add this new bound column to the
grid. It works when loaded for the first time and the paging works fine
also.
The only problem is that the Sort event doesn't fire. The bound columns are
being recreated when the page reloads,
so the grid object has them. I don't get it.
Any help would be great. Thanks
I'm basically creating a user control which contains a datagrid that will be
used throughout our application by all pages.
My user control contains a datagrid control and I expose methods to add a
bound column to the grid.
So when they call this function and pass in the field name and title, I
dynamically add this new bound column to the
grid. It works when loaded for the first time and the paging works fine
also.
The only problem is that the Sort event doesn't fire. The bound columns are
being recreated when the page reloads,
so the grid object has them. I don't get it.
Any help would be great. Thanks