Please help.
Could someone tell me how I can LateDatbind a value when the datagrid is created dynamically (ie: no .aspx to create ItemTemplate, etc.)?
ie:
Dim x As New DataGrid
Dim Col1 As New BoundColumn
Col1.DataField = "db_Name"
Col1.HeaderText = "Name"
x.Columns.Add(Col1)
Dim Col2 As New BoundColumn
Col2.DataField = "db_Value"
Col2.HeaderText = "Processed Value"
x.Columns.Add(Col2)
Now, what I want to do is some processing (method) of the data that is displayed in Col2.
ie:
Dim Col2 As New BoundColumn
Col2.DataField = "db_Value"
Col2.HeaderText = "Processed Value"
Col2.DataFormatString = ProcessValue("{0}")
x.Columns.Add(Col2)
The problem here is, there is no value of {0} until the databind method is called.
Please help!!!!
Could someone tell me how I can LateDatbind a value when the datagrid is created dynamically (ie: no .aspx to create ItemTemplate, etc.)?
ie:
Dim x As New DataGrid
Dim Col1 As New BoundColumn
Col1.DataField = "db_Name"
Col1.HeaderText = "Name"
x.Columns.Add(Col1)
Dim Col2 As New BoundColumn
Col2.DataField = "db_Value"
Col2.HeaderText = "Processed Value"
x.Columns.Add(Col2)
Now, what I want to do is some processing (method) of the data that is displayed in Col2.
ie:
Dim Col2 As New BoundColumn
Col2.DataField = "db_Value"
Col2.HeaderText = "Processed Value"
Col2.DataFormatString = ProcessValue("{0}")
x.Columns.Add(Col2)
The problem here is, there is no value of {0} until the databind method is called.
Please help!!!!