473,395 Members | 1,652 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,395 software developers and data experts.

Gridview row count troubles

SAL
Hello,
I have a small Web app that has a couple of pages in it. Both pages have
gridviews on them with basically the same ObjectDataSource. This object data
source is a business class. One of the GridViews allows editing so I enable
ViewState on that one. The other one does not so I disable ViewState on that
one.
The problem is that the one with the ViewState disabled is reporting correct
row numbers while the other one does not.
I can perform the same filtering on the gridview with view state disabled
over and over again and I get the same row count each time. However, I have
to perform the same filtering twice on the one with view state enabled to
get the correct row count (only the 2nd time)...
How can I make the one with view state enabled report the correct row count
each time?
SAL
Oct 15 '07 #1
0 1490

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

Similar topics

1
by: staeri | last post by:
I want to count the rows in a GridView which is nested into a DataList but I can't find the correct syntax for this. Can someone please help me with this and also tell me how to reference a text...
1
by: MC | last post by:
I have a label that shows the number of records returned by my gridview. So after gridview ondatabound event I check to see if the gridview.rows.count > 0, and if true then show row count in label...
1
by: hartbypass | last post by:
Hello all. I am trying to interate thorugh by GridView data to pump each cell of each row into a stored proc to load to a DB. I seem to be having a heck of a time getting the Columns.Count to...
0
by: troyblakely | last post by:
I have a gridview which is pulling data from a SqlDataSource, the select command queries a view and the update command is a stored procedure. I'm using a stored procedure because several tables...
7
by: =?Utf-8?B?cGF0cmlja2RyZA==?= | last post by:
Hi all! I have a gridview inside a datagrid (nested) for which (gridview) the rowcommand is not raised in order to delete a row from the grid! I also tried OnRowCommand="method", didn't work...
0
by: mike0870 | last post by:
Hi, I've been at this one for hours and cannot not find any posts of anyone having the same problem. Ther scenario is, I need to fill a drop down box with a value in the grid row to pass to the...
2
by: GISmatters | last post by:
I have unbound checkboxes in a nested gridview to allow multi-selection of "child" rows. For context, the parent gridview rows are for large "reports", the child rows are for various specific files...
0
by: vivek kapile | last post by:
Language: ASP.net Platform: Visual Studio 2010 with ASP.net Technology: Used in ASP.net Level: Beginner Note: You have to download the itextsharp.dll file and add as a reference to your...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

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.