473,387 Members | 1,638 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

AutoGen Columns gone Missing

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.
Nov 19 '05 #1
1 958
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.

"Arthur Dent" <hi*********************@yahoo.com> wrote in message
news:eC**************@TK2MSFTNGP10.phx.gbl...
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.

Nov 19 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Thomas Reat | last post by:
Is it reasonable to have a table with about 300 columns? There will be about 2500 rows. The data does not normalize. The alternative would be about 30 tables of about 10 columns each (all 30...
5
by: Ross Presser | last post by:
The purpose, as you can probably guess, is to produce a set of sample documents from a large document run. The data row has a CLUB column and an IFC column; I want a set of samples that contains...
82
by: Peter Diedrich | last post by:
The site design is pretty simple: ============================================ | Head | ============================================ | | ...
2
by: KevinGPO | last post by:
Just wondering if anyone knows if there are converters to convert from: MS Visual C++ 6.0 or MS Visual Studio 2003 project files into UNIX autogen/configure/make files?
0
by: Fox | last post by:
How can I have a Shema XSD to autogen the code of *.cs and *.xsx Something like below. //-------------------------------------------------------------------------- ---- // <autogenerated>...
1
by: Jennifer | last post by:
I have a datagrid where I am trying to align some columns to the center. The rest should be aligned to the right. When I try the code below I get an error message saying that the index is out of...
3
by: snowweb | last post by:
I'm creating my first web application in PHP/MySQL, however, when I go to view the database contents, the data has been stored in the wrong columns. I've gone through my insertion code with a fine...
4
by: Brian Hampson | last post by:
I recently upgraded to Outlook 2007 B2TR and have found that I can no longer code against MAPI.DLL It's gone :( Using C#, I used to get the MAPI session, and from that I could change the out of...
3
by: =?Utf-8?B?Um9iZXJ0IENoYXBtYW4=?= | last post by:
Hi, I have a GridView with a fixed number of columns being returned from a SQL query and each having a simple template: <asp:TemplateField HeaderText="Allocations"> <edititemtemplate>...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.