Hi,
there is no paint event in webforms, you can either use prerender event or
calling a method at bind time, below is an example of the latter :
<asp:templatecolumn ItemStyle-VerticalAlign="Top" ItemStyle-Width="110"
ItemStyle-HorizontalAlign="left" >
<itemtemplate>
<span ><%# GetFirstDocumentOfRecord( Container.DataItem) %></span>
</itemtemplate>
</asp:templatecolumn>
GetFirstDocumentOfRecord is a protected method declared in the code behind.
cheers,
--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation
"Sam Evans" <wi******@gmail.com> wrote in message
news:wZ********************@giganews.com...
All:
I've looked all over (and probably not in the right places) to try and
find some example code, or documentation on how I can modify the text in a
cell of a datagrid.
I've found information saying it's best to override the paint method, and
other information saying it's best to use the prerender event.
Can anyone point me in the right direction? Thanks and sorry for the dumb
question, I'm trying to learn C# coming from a Perl background. :)
-Sam