Forum  Core :: SDK (Vi...  Using the Visua...  Sorting problem in DataGridView when AllowUserToAddRows = true
Previous Previous
 
Next Next
New Post 6/23/2011 10:17 AM
  palli
11824 posts
1st Level Poster




Re: Sorting problem in DataGridView when AllowUserToAddRows = true 

Hi Sahene,

Thanks for the sample application. I see what you mean now.

However, what you describe is the exact same behaviour as you will see if you convert your application to Windows Forms, so it is not considered a bug in Visual WebGui.

My suggestion, which is what I usually do for my own applications, is to either allow my users to add the rows directly into the DataGridView, or I do it "manually" as you do with your Button, not both. If you set DataGridView.AllowUsersToAddRows = False and then change your logic for lastrow index to fit the changes, you will see that this problem no longer occurs.

Hope this explains and helps,

Palli

 


Páll Björnsson - Visual WebGui support team - Email: support@visualwebgui.com
 
Previous Previous
 
Next Next
  Forum  Core :: SDK (Vi...  Using the Visua...  Sorting problem in DataGridView when AllowUserToAddRows = true
Azure banner
.NET Web, Cloud and Mobile application delivery platform | Sitemap | Terms of Use | Privacy Statement | Copyright © 2005-2011 Visual WebGui®       Visual WebGui weblog on ASP.NET Visual WebGui Group on LinkedIn Visual WebGui updates on Twitter Visual WebGui Page on Facebook Visual WebGui YouTube Channel Visual WebGui Platform News RSS