[RESOLVED] .net 2.0 GridView
Hello,
I posted something similar to this post before but this is slightly different.
The GridView gets populated and in the _RowDataBound event the Accept button(select CommandField button) gets replaced by a text value if there is one as shown below:
The find button populated the GridView correctly and Accept button is replaced with a text where necessary but not sure why when the checkbox on the page is clicked on, then ALL the Accept buttons are shown on the GridView (Which is incorrect).
The check box control only shows a label.
Thanks
If (e.Row.RowType = DataControlRowType.DataRow) Then
'show the clinic code since there is a start date other wise just show the Accept button...
'If Not (e.Row.DataItem("c_start_date").ToString() Is Nothing) Then
If Not (e.Row.DataItem("c_start_date").ToString() = "") Then
e.Row.Cells(9).Text = e.Row.DataItem("c_clinic_code").ToString() 'Change ur text here
End If
End If
Re: [RESOLVED] .net 2.0 GridView
I can't even understand what the question was. You were assuming we already knew everything about the application you have been working on.
Re: [RESOLVED] .net 2.0 GridView
Apologies for not being able to explain the problem properly.
Imagine that there is a GridView which has a select commandField in one of the columns. This select button is replaced with a text according to business rules...
The problem was that instead of text to appear, sometimes the buttons appeared.
Any way, due to lack of time I kind of hacked it by using the visibility of the GridView...
Hope you are abit clearer now about the issue that I had.
Any way, this is solved now.
Thanks for your time guys.