Hi,
In a DataGrid I have placed a comandField select button. This field sometimes shows a text value and should sometimes show the select button instead (Depending on the business rule).
How can I make the select button to appear?
I basically want to put the code where the question mark is to show the button instead of the text.

i.e.
in grid_RowDataBound event


If (e.Row.RowType = DataControlRowType.DataRow) Then
If Not (e.Row.DataItem("c_start_date").ToString() Is Nothing) Then
e.Row.Cells(9).Text = e.Row.DataItem("c_clinic_code").ToString() 'Change ur text here
Else
'show the accept(select) button as there is no start date...
??????????????????????
End If
End If




Thanks