Datagrid & Bloated HTML

  • Thread starter Thread starter Paul
  • Start date Start date
P

Paul

Hi,

I am a couple of weeks into writing an intranet application and am
discovering some big disadvantages to using the DataGrid control.
Basically I have got HTML file being sent to client that are around
600kB!! When running this intranet app over slow VPN link it is not
very quick!!

I am using template columns and have linkbuttons on column headings,
when these are clicked I handle the "ItemCommand" event fired by the
DataGrid. I do not need to store viewstate for the grid for any other
reason but if I turn this off then I dont get any firing of the
"ItemCommand" event when the postback occurs - this takes up a large
chunk of my 600kB HTML file.

Should I just stop using this control and write out a table myself?
What other alternatives are available?

Does anyone have any suggestions?

Thanks,

Paul.
 
Saravana,

Thanks a lot! This article is just what I needed!!

You saved my users around 500kB (!!) of unnecessary download / page

Paul.
 
Back
Top