Thursday, July 17, 2008

Setting a grid column value via a Public Function

This example, sets an input type located inside a template column of datagrid.....

<input type="hidden" value='<%# SetId(Container.DataItem("id"))%>' runat="server" />

Here is the code in the vb file...


Public Function SetId(ByVal id As String) As String

Return id

End Function

No comments: