Asp.NET Gridview shows only odd rows

Nazza 0 Reputation points
2023-06-07T10:23:57.0366667+00:00

Hi all,

I have a problem populating a Gridview with a Datatable.

I have a DataTable with 21 rows. I select it as Gridview DataSource a call the DataBinb() method.

The property GridView.Rows.Count give me 21 as result.

But, when I look at the browser, I can see only 11 rows (the odd).

Looking in the generated HTML I can see there are only 11 rows in the table.

Is there some property I have to set?

Thank you

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,246 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Nazza 0 Reputation points
    2023-06-07T13:05:38.84+00:00

    Found a solution:

    I have to use asp:HyperLinkField instead of asp:BoundField

    0 comments No comments