Adding runtime columns to designtime datagrid

  • Thread starter Thread starter Chip
  • Start date Start date
C

Chip

I've got a datagrid defined on the design page. At runtime, I'd like to add
a bound column. I'm using
Dim CallNum As New BoundColumn()
CallNum.DataField = "call_num"
CallNum.HeaderText = "Call #"
CallNum.Visible = True
grdList.Columns.Add(CallNum)


But, the new column is not showing up at runtime. Is there another step to
this?

Chip
 
Just figured it out. The new column doesn't survive the postback, so it
needs to be added just in time for use.
 
Back
Top