Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Bound DataGrid.Columns.Count = 0

Reply
Thread Tools

Bound DataGrid.Columns.Count = 0

 
 
Dan
Guest
Posts: n/a
 
      03-02-2004
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?


 
Reply With Quote
 
 
 
 
Alvin Bruney [MVP]
Guest
Posts: n/a
 
      03-04-2004
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" <> wrote in message
news:...
> 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?
>
>



 
Reply With Quote
 
 
 
 
Dan
Guest
Posts: n/a
 
      03-04-2004
Yes. Apparently, this occurs when you have AutoGenerateColumns=TRUE. It
kind of seems like a bug.

Dan

"Alvin Bruney [MVP]" <vapor at steaming post office> wrote in message
news:%...
> 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" <> wrote in message
> news:...
> > 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?
> >
> >

>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Lower bound & Upper bound sunil panda Java 9 10-07-2008 08:32 PM
Passing Bound Object value to another Bound Object Phillip Vong ASP .Net 0 07-27-2006 10:54 PM
How to represent the data in a not bound control via bound control Mario Krsnic ASP .Net 0 06-23-2006 07:38 AM
Getting lower-bound and upper-bound of strings input Rhiner Dan C++ 1 03-27-2005 02:03 AM
optimize error:left bound range doesn't evaluate to a const. senthil VHDL 0 03-04-2004 03:02 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57