|
-
Jun 22nd, 2006, 09:10 AM
#1
Thread Starter
Fanatic Member
GridView - .net 2.0
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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|