ASP.net: Data field used in gridview is not showing as column but turns into title in another field

Kurt Jensen 20 Reputation points
2023-03-07T07:47:55.6666667+00:00

Hi.

I have a SQL datasource that returns 5 columns and a gridview to show them, but one of the columns does not show as a column in the gridview but turns into title (showing when holding the mouse over) in one of the other columns.

It keeps doing it no matter how the gridview is configured (Auto-generate fields or not).

If the SQL statement from the datasource is executed else where, all 5 columns is showing fine

What can cause this behaviour?

Developer technologies | ASP.NET | Other
{count} votes

Accepted answer
  1. Jose Zero 576 Reputation points
    2023-03-11T00:27:18.87+00:00

    In addition to @QiYou-MSFT , have you any code at Gridview.DataBound or GridviewRowDataBound events?
    Sometimes we use these events to make some final changes before page render...

    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.