Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6762065
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T14:16:10+00:00 2026-05-26T14:16:10+00:00

I using an ObjectDataSource (Should receive 5 rows) and a gridview. When I open

  • 0

I using an ObjectDataSource (Should receive 5 rows) and a gridview.
When I open the gridview I received all rows except the first one. So I only see 4 rows.

Now I sorting my gridview with a click on a column. But I also get only 4 rows.

After selecting a filter I receive all 5 rows.

What could be the problem?

EDIT:

<cc1:myGridview ID="mgvTESTs" runat="server" AutoGenerateColumns="False"
    DataSourceID="odsTESTs" >
    <Columns>
        <asp:TemplateField HeaderText="USER" SortExpression="USER">
            <ItemTemplate>
                <div class="zeile BtnZeile">
                    <asp:Label ID="lUSER" runat="server" />
                </div>
            </ItemTemplate>
        </asp:TemplateField>
        <asp:TemplateField HeaderText="TEST" SortExpression="TEST">
            <ItemTemplate>
                <asp:Label ID="lTEST" runat="server" Text='<%# Bind("TEST") %>' />
            </ItemTemplate>
        </asp:TemplateField>
        <asp:TemplateField HeaderText="Bid" SortExpression="BID">
            <ItemTemplate>
                <asp:Label ID="lBID" runat="server" Text='<%# Bind("BID") %>' />
            </ItemTemplate>
        </asp:TemplateField>
        <asp:TemplateField HeaderText="DATER" SortExpression="DATER">
            <ItemTemplate>
                <asp:Label ID="lDATER" runat="server" Text='<%# Bind("DATER") %>' />
            </ItemTemplate>
        </asp:TemplateField>
        <asp:BoundField DataField="ID" HeaderText="ID" InsertVisible="False" SortExpression="ID"
            Visible="False" />
    </Columns>
</cc1:myGridview>
<asp:ObjectDataSource ID="odsTESTs" runat="server" SelectMethod="SQLSelectQuery"
    TypeName="ObjectDataSource_DataBoundControl">
    <SelectParameters>
        <asp:Parameter Name="SqlCommand" DefaultValue="Select ID,
    TEST,
    BID,
    DATER
FROM 
    ABC_TESTs 
WHERE DATER >= '@param1' AND  DATER < '@param2'
ORDER BY DATER DESC" />
 <asp:SessionParameter Name="param1" Type="String" DefaultValue="01-01-2011"/>
        <asp:SessionParameter Name="param2" Type="String" DefaultValue="01-01-2011"/>
    </SelectParameters>
</asp:ObjectDataSource>
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T14:16:10+00:00Added an answer on May 26, 2026 at 2:16 pm

    The default select in your ObjectDataSource is probably only returning 4 rows, unless you are filtering it yourself in RowDataBound.

    Can’t be of anymore help without some code like @Aneef mentioned.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm using an ObjectDataSource to bind data to a GridView; it works fine except
I'm creating a gridview using an objectdatasource and it works fine when pulling all
Background I have a GridView that builds a table using an ObjectDataSource . This
Quick overview Trying to insert a Business Object using ObjectDataSource (on a GridView) Get
I used bind all GridViews , DetailViews etc. on my page using an ObjectDataSource
I am using subsonic and a gridview with objectdatasource (I have not used an
I'm using an ObjectDataSource with a 2008 ReportViewer control and Linq to CSV. The
I'm considering using an ObjectDataSource as an intermediate between my page controls and my
I am accessing a business class using an ObjectDataSource and trying to produce output
I am using a Session Parameter on an ObjectDataSource. It works fine on the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.