Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Gridview Bug?

Reply
Thread Tools

Gridview Bug?

 
 
Tim Payne
Guest
Posts: n/a
 
      06-04-2008
Here's an odd one. If I have a gridview that only has one row in it, and
there is a button on the row (be it a buttoncolumn or in a templatecolumn),
clicking the button adds an extra row to the gridview, but without any data
bound to it. Two or more rows and its fine, it only happens when there's one
row in the gridview.

Has anyone else come accross this? I can't find any examples of anyone else
who's come accross this one.

Regards,

Tim.


 
Reply With Quote
 
 
 
 
Tim Payne
Guest
Posts: n/a
 
      06-04-2008
In fact it happens if you click any button, anywhere on the page that
doesn't rebind the datagrid.

Regards,

Tim.


 
Reply With Quote
 
 
 
 
David Wier
Guest
Posts: n/a
 
      06-04-2008
It doesn't happen normally - - - Have you tried stepping through the code,
after any button click, to see where and how this happens?

David Wier
http://aspnet101.com
http://iWritePro.com - One click PDF, convert .doc/.rtf/.txt to HTML with no
bloated markup


"Tim Payne" <(E-Mail Removed)> wrote in message
news:%(E-Mail Removed)...
> In fact it happens if you click any button, anywhere on the page that
> doesn't rebind the datagrid.
>
> Regards,
>
> Tim.
>
>



 
Reply With Quote
 
Lars
Guest
Posts: n/a
 
      06-05-2008
Hi

I had the same error when I found out that the button I used was "Add" which
added a control to the grid. Could the problem be that simple to solve?

"David Wier" <(E-Mail Removed)> skrev i meddelandet
news:(E-Mail Removed)...
> It doesn't happen normally - - - Have you tried stepping through the code,
> after any button click, to see where and how this happens?
>
> David Wier
> http://aspnet101.com
> http://iWritePro.com - One click PDF, convert .doc/.rtf/.txt to HTML with
> no bloated markup
>
>
> "Tim Payne" <(E-Mail Removed)> wrote in message
> news:%(E-Mail Removed)...
>> In fact it happens if you click any button, anywhere on the page that
>> doesn't rebind the datagrid.
>>
>> Regards,
>>
>> Tim.
>>
>>

>
>



 
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
GridView Hierarchical View - Gridview in Gridview =?Utf-8?B?bWdvbnphbGVzMw==?= ASP .Net 1 05-09-2006 06:48 PM
Gridview inside Gridview little problems... Carlos Albert ASP .Net 1 12-06-2005 05:31 PM
GridView in a GridView Carlos Albert ASP .Net 2 12-06-2005 12:42 PM
GridView in a GridView Nalaka ASP .Net 6 12-05-2005 05:48 PM
Gridview with combobox whose data is dependent on field in gridview wallermj@hotmail.com ASP .Net 3 11-21-2005 05:34 PM



Advertisments