Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > GridView only showing header

Reply
Thread Tools

GridView only showing header

 
 
David
Guest
Posts: n/a
 
      08-31-2006
I have a gridView that sometimes only shows the header and not the detail.
Does anyone know how this can happen?

Also, if I change the SelectCommand string using code do I need to use
Databind() on the SqlDatasource AND the GridView or neither? Thanks.

David


 
Reply With Quote
 
 
 
 
KJ
Guest
Posts: n/a
 
      08-31-2006
David wrote:
> I have a gridView that sometimes only shows the header and not the detail.
> Does anyone know how this can happen?


Not sure on this one.

> Also, if I change the SelectCommand string using code do I need to use
> Databind() on the SqlDatasource AND the GridView or neither? Thanks.
>


Only on the GridView. AFAIK, DataBind will call Select on the
datasource implicitly.

-KJ

 
Reply With Quote
 
 
 
 
David
Guest
Posts: n/a
 
      09-01-2006
I am responding to let you know how the 1st item was resolved in case you
ever run into it. I had an html table underneath the GridView that held 2
asp textboxes and a label. All were visible=false. I used them to display
SQL, etc. during testing. When I used the web page internally it was fine.
When I came into the web remotely the GridView would flash and only the
header displayed. If I resized the window the GridView rows displayed.
Then I removed the small table under the GridView and the problem went away.

David

"KJ" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed) ups.com...
> David wrote:
>> I have a gridView that sometimes only shows the header and not the
>> detail.
>> Does anyone know how this can happen?

>
> Not sure on this one.
>
>> Also, if I change the SelectCommand string using code do I need to use
>> Databind() on the SqlDatasource AND the GridView or neither? Thanks.
>>

>
> Only on the GridView. AFAIK, DataBind will call Select on the
> datasource implicitly.
>
> -KJ
>



 
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
Header files with "header.h" or <header.h> ?? mlt C++ 2 01-31-2009 02:54 PM
Sh Crypto isakmp sa is showing Active but Tunnel is showing line protocol down. urvin Cisco 0 04-15-2008 08:17 AM
Save Child GridView only when parent GridView Saved crpietschmann ASP .Net Web Controls 5 09-07-2006 01:58 PM
GridView Hierarchical View - Gridview in Gridview =?Utf-8?B?bWdvbnphbGVzMw==?= ASP .Net 1 05-09-2006 06:48 PM
ASP 1.1: DataGrid - Showing/Not Showing Buttons Ray Booysen ASP .Net 2 03-28-2006 02:49 PM



Advertisments