Forum  Core :: SDK (Vi...  Developing the ...  DataGridView event rowenter
Previous Previous
 
Next Next
New Post 4/21/2009 3:56 PM
  avalor
119 posts
5th Level Poster


DataGridView event rowenter 

Hi, is there any bug with rowenter event,you know i have one form with dgv , the event listen when i click on a row perfectly and in other form when i click on the dgv row it listen until i refresh the form example when i resize the page size i dont understand

 
New Post 4/21/2009 6:40 PM
  jayhobbs
1664 posts
1st Level Poster




Re: DataGridView event rowenter 

Hi,

According to MSDN the RowEnter fires when the grid is loaded as well as when the user selects a row other than the current row.

I dont know how well the VWG Datagrid follows this but I discovered it does not fire if the DGV is read only.

Changinging the DGV to ReadOnly = false cuses it to fire but then it never fires again.

By chance I discovered that if I have a handler for DataGridView1.SelectionChanged the RowEnter fires every time end doesnt take any notice if the DGV is ReadOnly or not

The DataGridView1.SelectionChanged handler does not need any code. Weird!

If I were you I would use a different event if possible

Cheers

Jay

 

 

 
New Post 4/22/2009 9:20 AM
  avalor
119 posts
5th Level Poster


Re: DataGridView event rowenter 

SelectionChanged event works nice i have always used rowenter on winforms, thanks a lot jayhobbs

 
New Post 4/23/2009 2:01 PM
  palli
11824 posts
1st Level Poster




Re: DataGridView event rowenter 

Hi Jay,

This empty SelectionChanged handler think is an oldie that seems to be resurfacing now.

I opened a new issue for this which you can track here.

Palli

 


Páll Björnsson - Visual WebGui support team - Email: support@visualwebgui.com
 
New Post 9/15/2011 4:53 AM
  Andy1
11 posts
No Ranking


Re: DataGridView event rowenter 
Modified By Andy1  on 9/15/2011 7:54:57 AM)

Hello,

 

Sorry to bring up this topic again, but I was experiencing the exact same problem. The RowEnter event fired 3-4-5 times when initializing or populating my grid, but not when changing row focus after that. I tried to implement what jayhobbs (thanks a million) suggested in this thread (a SelectionChanged event), and surely enough the RowEnter event started to fire every time.

I am writing this because I noticed that the QA team wrote in the ticket you linked to that they were unable to reproduce this problem.

 

Regards,

Andy

 
Previous Previous
 
Next Next
  Forum  Core :: SDK (Vi...  Developing the ...  DataGridView event rowenter
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