A
Angela
I have a ButtonColumn in my DataGrid and I used the ButtonColumnType LinkButton, however I would like to remove the underline from the button text
I tried
ButtonColumn butTemp = new ButtonColumn()
butTemp.ButtonType = ButtonColumnType.LinkButton
butTemp.CommandName = "EDIT"
butTemp.Text = <determined by a database entry
butTemp.HeaderText = "Document Description"
butTemp.ItemStyle.Font.Underline = false
But that doesn't remove the underline. Is there a way to remove the underline
I tried removing the line with a regular LinkButton on a WebForm and I was able to remove the underline on a regular LinkButton, but I haven't found a way to do it in the DataGrid
this is how I removed the underline on the LinkButton
LinkButton lb = new LinkButton()
lb.Attributes.Add("text-decoration", "none");
I tried
ButtonColumn butTemp = new ButtonColumn()
butTemp.ButtonType = ButtonColumnType.LinkButton
butTemp.CommandName = "EDIT"
butTemp.Text = <determined by a database entry
butTemp.HeaderText = "Document Description"
butTemp.ItemStyle.Font.Underline = false
But that doesn't remove the underline. Is there a way to remove the underline
I tried removing the line with a regular LinkButton on a WebForm and I was able to remove the underline on a regular LinkButton, but I haven't found a way to do it in the DataGrid
this is how I removed the underline on the LinkButton
LinkButton lb = new LinkButton()
lb.Attributes.Add("text-decoration", "none");