Forum  General Visual ...  Visual WebGui v...  Datagrid Tabbing issue and editmode issue
Previous Previous
 
Next Next
New Post 2/10/2012 9:56 AM
  gdhigbee
8 posts
No Ranking


Datagrid Tabbing issue and editmode issue 

I have a databound datagrid located inside a tab page that I have the following issues with:

1) If I use the TAB key to move between columns as I enter data it stops responding to any form of keyboard input until I click in the "stuck" cell using the mouse.

2) The record always stays in edit mode ("has the pencil icon") until I enter data into a cell in the next record. At that point the previous record no longer displays the edit icon and the datagrid draws a new blank row.

I currently have the datagrid edit mode set to EditOnEnter.

I also have two hidden columns that are filled using the DefaultValuesNeeded event.

 

Does anyone have any ideas?

 

Thanks in advance,
Gary

 
New Post 2/10/2012 11:09 AM
  gdhigbee
8 posts
No Ranking


Re: Datagrid Tabbing issue and editmode issue 
Modified By gdhigbee  on 2/10/2012 3:11:16 PM)

The datagridview has a combobox column. If I tab beyond this column without activating the combobox the two issues don't occur.

The combobox datasource is a datatable, if that makes any difference.

 
New Post 2/11/2012 6:09 AM
  palli
11838 posts
1st Level Poster




Re: Datagrid Tabbing issue and editmode issue 

Hi gdhigbee,

I will probably need a reproducing sample application to know exactly what is causing this, because there are quite a few unresolved DataGridView problems related to focusing.

What we do know generally, is that in case you register an event handler for your DGV and then you update something on your form within that event handler, some browsers (especially IE) are sensitive to that and may loose the focus out of the DGV in that case. You can see a code fragment with a workaround that may help in some cases within this thread here.

If you can't make it work this way, pleae create the most minimal reproducing sample application, clean it, zip it and then email it to the support email address (see my signature) along with the full Http reference to this thread. Please also add a post here when you have sent it.

Hope this helps,

Palli

 

 


Páll Björnsson - Visual WebGui support team - Email: support@visualwebgui.com
 
New Post 2/13/2012 9:17 AM
  gdhigbee
8 posts
No Ranking


Re: Datagrid Tabbing issue and editmode issue 
Modified By gdhigbee  on 2/13/2012 3:02:45 PM)

I have converted the code to C# and tested it. It did not resolve the issue. However, I did narrow the issue down further. If I hit the Enter key after picking an item from the bound combobox column the issue does not occur, if I use tab or arrow keys the issue still occurs. <EDIT> After watching this closer I notice that the Enter key causes the focus to briefly jump to the next line which causes a new blank record to be created and then the event handler causes the focus to jump to the next cell to the right of the one I just left. </EDIT>

But, I seem to have a more basic issue at this point. For some reason my entered values are not being added into the underlying datatable and when I try to update the database the table is null.

After I resolve the datatable issue I'll try and generate a test case app for you to dive into.

Thanks,
Gary

 
New Post 2/13/2012 10:59 AM
  palli
11838 posts
1st Level Poster




Re: Datagrid Tabbing issue and editmode issue 

Hi Gary,

Good luck with your quest and we will be waiting for your sample application.

Keep in mind, that if you do have an event handler registered that will fire an event when you (for instance) leave the field, and within that event handler you update something on the form, that's exactly where IE seems to be more vulnerable than the other browsers, and where the thread I referenced might help.

Palli

 


Páll Björnsson - Visual WebGui support team - Email: support@visualwebgui.com
 
Previous Previous
 
Next Next
  Forum  General Visual ...  Visual WebGui v...  Datagrid Tabbing issue and editmode issue
Assessment 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