Adding runtime columns to designtime datagrid

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
 
C

Chip

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

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,537
Members
45,023
Latest member
websitedesig25

Latest Threads

Top