Inconsistant bindingNavigatorDeleteItem.Pressed value returned

  • Thread starter Thread starter Morris Neuman
  • Start date Start date
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?
 
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
 
Back
Top