Forum  Core :: SDK (Vi...  Using the Visua...  Sorting problem in DataGridView when AllowUserToAddRows = true
Previous Previous
 
Next Next
New Post 5/18/2011 4:22 PM
Unresolved
  s.silay@login.com.tr
17 posts
No Ranking


Sorting problem in DataGridView when AllowUserToAddRows = true 
Modified By s.silay@login.com.tr  on 5/18/2011 7:23:01 PM)

Hi

Having a problem when working with DataGridView.

 

Os Win 7 Ultimate

Visual WebGUI 6.4.0 Release JQT Beta 2

2 blank extra rows are added when clicked for column sorting    

DataGridView when AllowUserToAddRows = true

 

Sincerely

Sahane

 

 
New Post 5/19/2011 12:20 AM
  Ewans
497 posts
2nd Level Poster




Re: Sorting problem in DataGridView when AllowUserToAddRows = true 

Hi

I do not get this issue using the same platform as yourself.

I am using bound DGV with allow user to add rows set to true and isSelectionChangeCritical set to true

Regards

 

 
New Post 5/19/2011 8:00 AM
  s.silay@login.com.tr
17 posts
No Ranking


Re: Sorting problem in DataGridView when AllowUserToAddRows = true 

Hi,

Thank you for answer, but

The problem continues.

You can see your demo on CompanionKit,

DataGridView \ Populating Data \ Insert / Update / Delete section;

First of all, go to the last line on datagridview,

- edit mode, (left dbl click on the mouse)

- right click mouse and select (context menu -> Add Row ...) 

- enter information via pop-up dialog, press the OK Button,

ultimately add to the table 2 entries, one of which must not be registered.

Regards

 

 
New Post 5/19/2011 11:38 PM
  Ewans
497 posts
2nd Level Poster




Re: Sorting problem in DataGridView when AllowUserToAddRows = true 

Hi Sahane

I did not write the code for the Companion kit, which is not using direct addition to the DGV.

see this thread which shows how I set up a bound DGV.

http://www.visualwebgui.com/Developers/Forums/tabid/364/forumid/29/threadid/47963/scope/posts/Default.aspx

By the way I am not employed by Gixmox!

Hope this helps

 
New Post 5/21/2011 6:55 AM
  palli
11824 posts
1st Level Poster




Re: Sorting problem in DataGridView when AllowUserToAddRows = true 

Hi Sahene,

I believe your culprit here is your double-clicking on the last row, which is the one with an asterisk in front, and serves the purpose of being the one you add information to when AllowUserToAddRows = true.

By double-clicking on that row you actually enter editmode on that row, which means it's in the process of being added. When you then right-click and select Add New, the first one is committed to the datasource just before you start entering data into the dialog. To add new row to the DataGridView, you should select either one of these two methods, either you use the last (blank and asterisk marked) row at the bottom, or you right click the DataGridView and select Add New... not both methods.

Hope this explains,

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
CompanionKit Bottom
.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