Bound DataGrid.Columns.Count = 0

D

Dan

I have successfully bound a DataGrid on Web Form (i.e. it shows the data
properly in the browser). It looks like there are 4 columns of data, but
when I retrieve DataGrid.Columns.Count in the Page_Load event (after
binding), it returns 0. Why?
 
D

Dan

Yes. Apparently, this occurs when you have AutoGenerateColumns=TRUE. It
kind of seems like a bug.

Dan

Alvin Bruney said:
Your post went unanswered. Have you resolved this issue?

--
Regards,
Alvin Bruney [ASP.NET MVP]
Got tidbits? Get it here...
http://tinyurl.com/3he3b
Dan said:
I have successfully bound a DataGrid on Web Form (i.e. it shows the data
properly in the browser). It looks like there are 4 columns of data, but
when I retrieve DataGrid.Columns.Count in the Page_Load event (after
binding), it returns 0. Why?
 

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,536
Members
45,012
Latest member
RoxanneDzm

Latest Threads

Top