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...
ASP.net: Data field used in gridview is not showing as column but turns into title in another field
Kurt Jensen
20
Reputation points
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?
Accepted answer
-
Jose Zero 576 Reputation points
2023-03-11T00:27:18.87+00:00