Hello NG,
i have the following function which works fine:
Public Shared Function getFullDatagrid() As
System.Web.UI.WebControls.DataGrid
Dim myGrid As New System.Web.UI.WebControls.DataGrid()
Dim bcn1 As New BoundColumn()
bcn1.HeaderText = "T55"
bcn1.DataField = "DocumentID"
myGrid.Columns.Add(bcn1)
myGrid.Enabled = True
myGrid.EnableViewState = True
myGrid.DataSource = getData("test")
myGrid.DataBind()
Return myGrid
End Function
In Page_Load i call the function:
DataGrid1 = getFullDatagrid()
But the datagrid is not displayed. All the propertys like
"DataGrid1.Columns.Count" , "DataGrid1.Items.Count" can be shown in a
layer.
Do you know what is going wrong here?
Thank You
Ralf