Thanks Mark.. I got it both in my Gridview and DetailsView. But one last question, in a GridView, I need to use Cells[0], Cells[1],
Cells[3], etc.... to refer to the cell contents in displayed order. .. What if I add or remove a boundfield later on, I need to
chagne the reference number all over the place.. Can I refer to the Field name directly somehow ?
Regards,
Peter
"Mark Rae [MVP]" <> wrote in message news:...
> "Peter" <> wrote in message news:Of36%...
>
> [please don't top-post]
>
>>>> I have a <asp:Boundfield> which returns the value of a datasource field. Can I have the text display something else depending
>>>> on the value of the field?
>>>
>>> http://forums.asp.net/p/1190117/2058828.aspx#2058828
>>> http://msdn.microsoft.com/en-us/libr...databound.aspx
>>
>> Thanks Mark but what's the substitute for RowDataBound in DetailsView
>
> http://msdn.microsoft.com/en-us/libr...emcreated.aspx
>
>
> --
> Mark Rae
> ASP.NET MVP
> http://www.markrae.net