473,320 Members | 2,180 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

datagrid enableViewState question

i would like my datagrids to be both sortable and pageable. All the
examples i have found so far use methods which require the datagrid's
enableViewState method set to true. This can be bad if the datagrid is
holding lots and lots of data.

is it possible to change the link on the datagrid header column links
somehow? I would basically like these links to call a custom
javascript function instead of doing a postback. In the javascript
function I would set a hidden text field the value of the sorting
column, then submit the form.

am i missing something? is there a better way of doing this?
Nov 19 '05 #1
3 1541
one of the MVP's (ashok - ASP.NET MVP) wrote a sortable datagrid using
strictly client side a while back. see if you have any luck googling for it.
he also made the source code available

--
Regards,
Alvin Bruney - ASP.NET MVP

[Shameless Author Plug]
The Microsoft Office Web Components Black Book with .NET
Now available @ www.lulu.com/owc, Amazon.com etc
"Mortar" <a@b.com> wrote in message
news:42***************@nntp.broadband.rogers.com.. .
i would like my datagrids to be both sortable and pageable. All the
examples i have found so far use methods which require the datagrid's
enableViewState method set to true. This can be bad if the datagrid is
holding lots and lots of data.

is it possible to change the link on the datagrid header column links
somehow? I would basically like these links to call a custom
javascript function instead of doing a postback. In the javascript
function I would set a hidden text field the value of the sorting
column, then submit the form.

am i missing something? is there a better way of doing this?

Nov 19 '05 #2
examples i have found so far use methods which require the datagrid's
enableViewState method set to true. This can be bad if the datagrid is
holding lots and lots of data.

is it possible to change the link on the datagrid header column links
somehow? I would basically like these links to call a custom
javascript function instead of doing a postback. In the javascript
....
i would like my datagrids to be both sortable and pageable. All the
examples i have found so far use methods which require the datagrid's
enableViewState method set to true. This can be bad if the datagrid is
holding lots and lots of data.

is it possible to change the link on the datagrid header column links
somehow? I would basically like these links to call a custom
javascript function instead of doing a postback. In the javascript
function I would set a hidden text field the value of the sorting
column, then submit the form.

am i missing something? is there a better way of doing this?


__________________________________________________ _____________________________
Posted Via Uncensored-News.Com - Accounts Starting At $6.95 - http://www.uncensored-news.com
<><><><><><><> The Worlds Uncensored News Source <><><><><><><><>

Nov 19 '05 #3

was there a response in this somewhere?

On 16 Jul 2005 15:54:42 GMT, "Robert Smith" <rs****@mxfrontgate.com>
wrote:
examples i have found so far use methods which require the datagrid's
enableViewState method set to true. This can be bad if the datagrid is
holding lots and lots of data.

is it possible to change the link on the datagrid header column links
somehow? I would basically like these links to call a custom
javascript function instead of doing a postback. In the javascript
...
i would like my datagrids to be both sortable and pageable. All the
examples i have found so far use methods which require the datagrid's
enableViewState method set to true. This can be bad if the datagrid is
holding lots and lots of data.

is it possible to change the link on the datagrid header column links
somehow? I would basically like these links to call a custom
javascript function instead of doing a postback. In the javascript
function I would set a hidden text field the value of the sorting
column, then submit the form.

am i missing something? is there a better way of doing this?


_________________________________________________ ______________________________
Posted Via Uncensored-News.Com - Accounts Starting At $6.95 - http://www.uncensored-news.com
<><><><><><><> The Worlds Uncensored News Source <><><><><><><><>


Nov 19 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Andla Rand | last post by:
Hi, Could you help me to understand how datagrid works. I'm trying to make a datagrid editable. Now most of the tutorials I read says that i should turn the Enable ViewState off. Why is that? ...
7
by: A.M | last post by:
Hi, I want to refresh my DataGrid data on every postback. I have following code in Page_Load event, but after first page load, the DataGrid never gets refresh. Here is the code i have in...
2
by: michele | last post by:
Hi, i'm using a datagrid control in my webform, with AutoGenerateColumns=false; it work very well if EnableViewState=true; including paging and sorting, but this cause a big performance issue, so...
2
by: Syed Sami R. Shah | last post by:
hi all, i am having problem with using itemcommand of datagrid by way of asp:image button. i have put an image button in a datagrid item template and have set CommandName="DeleteRecord" and have...
0
by: Mortar | last post by:
i would like my datagrids to be both sortable and pageable. All the examples i have found so far use methods which require the datagrid's enableViewState method set to true. This can be bad if the...
0
by: Sue | last post by:
I'm missing something very simple here, and I need an answer fairly quick if possible. I'm behind on this project now because of this... Code examples below question... I have a datagrid (DG)...
2
by: Calvin KD | last post by:
Hi everyone, I have a datagrid to display search results. The search results at this stage we only return the first 500 records to speed up the search. The problem is, if I turn the...
0
by: jigsawcube1 | last post by:
I am trying to accept two input strings and concatinate and display the result in a datagrid. Following is the HTML and code. ItemCommand does not get fired what is that I am missing? <body...
0
by: stevem2112 | last post by:
I have a datagrid with 2 Template columns. One column has DropDownLists and the other has Textboxes. I bind each DDL in the ItemCreated event. This datagrid is inside a UserControl that is inside...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.