AutoGen Columns gone Missing

  • Thread starter Thread starter Arthur Dent
  • Start date Start date
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.
 
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.
 
Back
Top