Inconsistant bindingNavigatorDeleteItem.Pressed value returned

M

Morris Neuman

I am testing the value of bindingNavigatorDeleteItem.Pressed in a GridView's
RowsRemoved() event handler. If there is more than 1 row in the grid then
bindingNavigatorDeleteItem.Pressed always returns TRUE as it should be (when
it was pressed to delete a row).

When there is only one row in the gridview then it returns FALSE even though
the button was pressed to delete the last row.

What is the logic for that? Is there a bug in the boundary condition of the
Gridview when only 1 row is in the GridView?
 
C

Colbert Zhou [MSFT]

Hello Morris,

For GridView issues, the right place to consult should be the ASP.NET
webcontrols newsgroup,
http://www.microsoft.com/communities/newsgroups/en-us/?dg=microsoft.public.d
otnet.framework.aspnet.webcontrols

What I can suggest on this is we can debug into the GridView to see its
implementation logic. We can debug .NET source codes by following this blog,
http://blogs.msdn.com/sburke/archive/2008/01/16/configuring-visual-studio-to
-debug-net-framework-source-code.aspx


Best regards,
Ji Zhou
Microsoft Online Community Support
 

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

Top