AutoGen Columns gone Missing

A

Arthur Dent

Please help, i have some Really odd behaviour ive never seen before...
I have a datagrid with AutoGenerateColumns = True.
I get a datatable from the db, and do
grd.DataSource = dt
grd.DataBind

Only the first two columns show up in the grid. I am doing no conditional
formatting or visibility in the ItemDataBound or Created events. I have
stepped into the code in debug, and verified that the datatable DOES in fact
have all the columns/data in it. But for whatever reason, the grid refuses
to show anything beyond the first two columns.

I have no idea where to go with this problem. Anyone with any ideas?
Thanks in advance,
- Arthur Dent.
 
A

Arthur Dent

Okay, ive tracked it down somewhat. The problem is actually in the
datatable. If i use a diff dt, then it binds fine. But the table thats not
binding DOES have all the right columns/data.
What would make a datatable not bind some of its columns to a datagrid??

Thanks in advance,
- Arthur Dent.
 

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

Similar Threads


Members online

Forum statistics

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

Latest Threads

Top