I am programatically inserting a footer row to my GridView. In cell 0 I am adding a "Select" button.
So far no problem. Now I need to left justify the "Select" verbage in the cell. I am adding following to the code:Code:If e.Row.RowType = DataControlRowType.Footer Then Dim myLinkButton As New LinkButton myLinkButton.Text = "Select" AddHandler myLinkButton.Click, New EventHandler(AddressOf ClickHandler) e.Row.Cells(0).Controls.Add(myLinkButton) End If
When I now display the GridView, I see a '1' in the footer cell 0 and not a "Select" anymore???Code:myLinkButton.Text = HorizontalAlign.Left




Reply With Quote