I'm trying to create a link column that displays text from the db. It's currently a GridBoundColumn and it displays the text in the Status db field fine, but I want it to be a link so I tried this:
But the column shows this now 'System.Data.DataRowView' on every line instead of something like 'Accepted'.
What am I missing from setting up a Link column?
Status is defined as nvarchar(50) in the db.
| gridColumn = new GridButtonColumn(); |
| (gridColumn as GridButtonColumn).ButtonType = GridButtonColumnType.LinkButton; |
| (gridColumn as GridButtonColumn).DataTextField = "Status"; |
| (gridColumn as GridButtonColumn).DataTextFormatString = "{0}"; |
What am I missing from setting up a Link column?
Status is defined as nvarchar(50) in the db.