Not sure about the UDF, but if your datagrid isn't autogenerating the
columns, you should be able to get a column header like this:
Private Sub DataGrid1_PreRender _
(ByVal sender As Object, ByVal e As System.EventArgs) _
Handles DataGrid1.PreRender
DataGrid1.Columns(0).HeaderText = "This could change" ' Could be an
expression?
End Sub
Is that what you meant?
Ken
MVP [ASP.NET]
[quoted text, click to view] "Alan Z. Scharf" <ascharf@grapevines.com> wrote in message
news:%23bc%23doY0EHA.3808@tk2msftngp13.phx.gbl...
> 1. Is there a way to make datagrid column text fill in from an expression?
>
> 2. I want column header text based on a lookup value from a UDF.
>
> Thanks.
>
> Alan
>
>