Peter,
This is an interesting article. I'm not sure that I can use it for this
problem, but it is a good thing to know about.
This datagrid has a checkbox column and a series of dropdowns that the user
can edit. If they check several columns, then the data goes into the
database, so the data from each checked row has to be saved.
Realistically, I think that the old design of this page is not great. If I
cannot get the page to display reasonably quickly, then I will change the
design to something quicker and probably more intuitive for the user.
Thanks.
David
"Peter Laan" <> wrote in message
news:%23vYaFK%...
>>> On Sat, 30 Apr 2005 12:05:40 -0400, "aualias"
>>> <> wrote:
>>>
>>>>I am rewriting a web page that was previously done with ColdFusion. It
>>>>has
>>>>a DataGrid and one column in the DataGrid is a dropdown list which is
>>>>the
>>>>same for all rows. The ItemDataBound code looks like this...
>>>>
> <snip>
>>>>
>>>>My questions are...
>>>>
>>>>1) Is there anything inherently wrong with the way I am creating the
>>>>DropDownList in the DataGrid?
>>>>
>>>>2) Is it normal in this situation for an ASP.NET page to load
>>>>slowly?
>>>>
>>>>3) What can I do to speed up the page load?
>
> Check this page for ideas on how to reduce the viewstate:
> http://www.codeproject.com/aspnet/DataGridViewState.asp
>
> The basic idea is to turn off the viewstate on all rows. It works great if
> you only neeed an id for the row that the user selected. If the user is
> also able to edit the contents, perhaps it's possible to turn off the
> viewstate for all rows except the row being edited.
>
> Peter
>
>