﻿<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>StrataFrame Forum » StrataFrame Application Framework - V1 » WinForms (How do I?)  » Ultragrid - ctrl-TAB won't work out of UG in groupbox when on TabPage</title><generator>InstantForum 2017-1 Final</generator><description>StrataFrame Forum</description><link>http://forum.strataframe.net/</link><webMaster>StrataFrame Forum</webMaster><lastBuildDate>Thu, 10 Sep 2026 13:55:43 GMT</lastBuildDate><ttl>20</ttl><item><title>Ultragrid - ctrl-TAB won't work out of UG in groupbox when on TabPage</title><link>http://forum.strataframe.net/FindPost27278.aspx</link><description>This is both interesting and frustrating ( like so many things in our profession ;) )&lt;br&gt;
&lt;br&gt;
In the example the only change i have made to Ivan's clever trick of placing the UG in a groupbox which handles the TabOrderController is to put that groupbox on a TabPage ( and are all the ultragrids in my app )&lt;br&gt;
&lt;br&gt;
ctrl-Tab seems reserved to move between tab pages.  But ctrl-E is also a problem.  Not sure where the focus goes, since in watch window it shows e.keycode is not keys.E but CntrlKey {17}  ( this is also true when it is Cntrl-TAB )&lt;br&gt;
&lt;br&gt;
Oddly, Ctrl-A, Ctrl-X etc work as expected.  And my code in the OnKeydown to have cntrl-Delete delete the row works fine, so I am not sure how the keycode is getting intercepted by the TabControl..&lt;br&gt;
&lt;br&gt;
Notice in the sample that if the TabControl is removed, the groupbox/ultragrid work exactly as in the original example.&lt;br&gt;
&lt;br&gt;
I have not been able to figure out if this is a SF thing or just a .NET tabcontrol thing or where to intervene.&lt;br&gt;
&lt;br&gt;
If it is not fixable I need to convert my app to use panels or something instead but before I go that direction I'd like to know this can't be fixed and that I am not going to have the same problem there.&lt;br&gt;
&lt;br&gt;
Thanks in advance ( Ivan :D )</description><pubDate>Thu, 10 Jun 2010 06:34:15 GMT</pubDate><dc:creator>Charles R Hankey</dc:creator></item><item><title>RE: Ultragrid - ctrl-TAB won't work out of UG in groupbox when on TabPage</title><link>http://forum.strataframe.net/FindPost27371.aspx</link><description>[quote][b]Charles R Hankey (06/09/2010)[/b][hr][b][quote]Você é um gênio e você é meu herói[/quote][/b]&lt;BR&gt;&lt;BR&gt;[/quote]&lt;/P&gt;&lt;P&gt;Oh, that is perfect Portuguese! :D&lt;/P&gt;&lt;P&gt;Thank you for your kind words, Charles. Really glad it worked.</description><pubDate>Thu, 10 Jun 2010 06:34:15 GMT</pubDate><dc:creator>Ivan George Borges</dc:creator></item><item><title>RE: Ultragrid - ctrl-TAB won't work out of UG in groupbox when on TabPage</title><link>http://forum.strataframe.net/FindPost27370.aspx</link><description>[quote][b]Charles R Hankey (06/09/2010)[/b][hr]While I'm testing your solution, here's the response I got on StackOverflow. I'm thinking there might be a way to put an UltraDataSource between the BBS and the grid ? &lt;BR&gt;[/quote]&lt;/P&gt;&lt;P&gt;Well, at least you got an answer over there, Experts Exchange didn't get me any.</description><pubDate>Thu, 10 Jun 2010 06:30:37 GMT</pubDate><dc:creator>Ivan George Borges</dc:creator></item><item><title>RE: Ultragrid - ctrl-TAB won't work out of UG in groupbox when on TabPage</title><link>http://forum.strataframe.net/FindPost27368.aspx</link><description>Works beautifully !  ( though I was less successful in putting formatting for font, size and bold around the Portugese - some it got post before I could switch to English )&lt;br&gt;
&lt;br&gt;
this will definitely solve my immediate issues and really isn't difficult to implement wherever I need dates in an Ultrawingrid&lt;br&gt;
&lt;br&gt;
Wow.  I'm impressed :cool:&lt;br&gt;
&lt;br&gt;</description><pubDate>Wed, 09 Jun 2010 18:16:36 GMT</pubDate><dc:creator>Charles R Hankey</dc:creator></item><item><title>RE: Ultragrid - ctrl-TAB won't work out of UG in groupbox when on TabPage</title><link>http://forum.strataframe.net/FindPost27367.aspx</link><description>[b][quote]Você é um gênio e você é meu herói[/quote][/b]&lt;br&gt;
&lt;br&gt;</description><pubDate>Wed, 09 Jun 2010 18:14:23 GMT</pubDate><dc:creator>Charles R Hankey</dc:creator></item><item><title>RE: Ultragrid - ctrl-TAB won't work out of UG in groupbox when on TabPage</title><link>http://forum.strataframe.net/FindPost27366.aspx</link><description>While I'm testing your solution, here's the response I got on StackOverflow.  I'm thinking there might be a way to put an UltraDataSource between the BBS and the grid ?  &lt;br&gt;
&lt;br&gt;
[quote]&lt;br&gt;
Do you have an UltraDataSource backing your grid? If so, then e.Row.ListObject should be the UltraDataRow corresponding to the grid's row.&lt;br&gt;
&lt;br&gt;
I often keep a reference to a business object in the UltraDataRow's Tag property, and I end up with InitializeRow methods that look like this (apologies for C# instead of VB.net):&lt;br&gt;
&lt;br&gt;
    private void mygrid_InitializeRow(object sender, InitializeRowEventArgs e)&lt;br&gt;
    {&lt;br&gt;
        try&lt;br&gt;
        {&lt;br&gt;
            UltraDataRow udr = e.Row.ListObject as UltraDataRow;&lt;br&gt;
            if (udr == null)&lt;br&gt;
            {&lt;br&gt;
                return;&lt;br&gt;
            }&lt;br&gt;
&lt;br&gt;
            MyRecord rec = udr.Tag as MyRecord;&lt;br&gt;
            if (rec == null)&lt;br&gt;
            {&lt;br&gt;
                return;&lt;br&gt;
            }&lt;br&gt;
&lt;br&gt;
            ...&lt;br&gt;
&lt;br&gt;
You can also access the underlying datasource values from udr.Band.Cells.&lt;br&gt;
&lt;br&gt;
Hope this helps!&lt;br&gt;
[/quote]</description><pubDate>Wed, 09 Jun 2010 17:46:37 GMT</pubDate><dc:creator>Charles R Hankey</dc:creator></item><item><title>RE: Ultragrid - ctrl-TAB won't work out of UG in groupbox when on TabPage</title><link>http://forum.strataframe.net/FindPost27365.aspx</link><description>YOU ARE MY HERO !  :D&lt;br&gt;
&lt;br&gt;
I will test this tonight and let you know &lt;br&gt;
&lt;br&gt;</description><pubDate>Wed, 09 Jun 2010 17:33:43 GMT</pubDate><dc:creator>Charles R Hankey</dc:creator></item><item><title>RE: Ultragrid - ctrl-TAB won't work out of UG in groupbox when on TabPage</title><link>http://forum.strataframe.net/FindPost27364.aspx</link><description>Ah, forgot to say... set the actual date column Hidden property to True. ;)</description><pubDate>Wed, 09 Jun 2010 16:07:18 GMT</pubDate><dc:creator>Ivan George Borges</dc:creator></item><item><title>RE: Ultragrid - ctrl-TAB won't work out of UG in groupbox when on TabPage</title><link>http://forum.strataframe.net/FindPost27363.aspx</link><description>Hi Charles.&lt;P&gt;I think I found a way to handle this, not sure you will like it, but it seems to be working. &lt;/P&gt;&lt;P&gt;The idea is to add an unbound column to you grid, you can do that with the grid designer clicking on the "Add Unbound Column" button at the Columns treeview item. Give it a Key name, like ubc_Date. Set its DataType to System.DateTime. We will use this unbound column to store your date from the table. Have a look at the code and let me know.&lt;/P&gt;&lt;P&gt;[codesnippet]&lt;/P&gt;&lt;P&gt;#Region "&amp;nbsp; Private Fields&amp;nbsp; "&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; '-- keep current cell state&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim _CellUpdating As Boolean = False&lt;/P&gt;&lt;P&gt;#End Region&lt;/P&gt;&lt;P&gt;[/codesnippet]&lt;/P&gt;&lt;P&gt;[codesnippet]&lt;/P&gt;&lt;P&gt;#Region "&amp;nbsp; Handled Events&amp;nbsp; "&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Private Sub grdYourGrid_InitializeRow(ByVal sender As Object, _&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ByVal e As Infragistics.Win.UltraWinGrid.InitializeRowEventArgs) _&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Handles grdYourGrid.InitializeRow&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; '-- check if there are rows to be initialized&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If Me.grdYourGrid.Rows.Count() = 0 Then&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Exit Sub&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; End If&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; '-- move record point to current row&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; YourTableBO1.SeekToPrimaryKey(e.Row.Cells("yt_pk").Value)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; '-- if cell is updating, don't set unbound column&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If _CellUpdating = False Then&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; '-- if underlying table has #1/1/1800#, show empty cell for date&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If YourTableBO1.yt_Date = #1/1/1800# Then&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; e.Row.Cells("ubc_Date").Value = DBNull.Value&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Else&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; e.Row.Cells("ubc_Date").Value = YourTableBO1.yt_Date&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; End If&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; End If&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; '-- reset the flag&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; _CellUpdating = False&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; End Sub&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Private Sub grdYourGrid_AfterCellUpdate(ByVal sender As Object, _&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ByVal e As Infragistics.Win.UltraWinGrid.CellEventArgs) _&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Handles grdYourGrid.AfterCellUpdate&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; '-- if unbound date column, deal with empty date&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If e.Cell.Column.Key = "ubc_Date" Then&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If e.Cell.Value Is DBNull.Value Then&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; YourTableBO1.yt_Date = #1/1/1800#&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Else&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; YourTableBO1.yt_Date = CDate(e.Cell.Value)&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; End If&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; End If&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; '-- set the cell state to updating&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; _CellUpdating = True&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; End Sub&lt;/P&gt;&lt;P&gt;#End Region&lt;/P&gt;&lt;P&gt;[/codesnippet]</description><pubDate>Wed, 09 Jun 2010 16:04:51 GMT</pubDate><dc:creator>Ivan George Borges</dc:creator></item><item><title>RE: Ultragrid - ctrl-TAB won't work out of UG in groupbox when on TabPage</title><link>http://forum.strataframe.net/FindPost27362.aspx</link><description>I seems the question we really need to ask is :  How do we display the date #1/1/1800# as if it were null.  And how do we save null to the datasource/bbs as #1/1/1800#  &lt;br&gt;
&lt;br&gt;
The answers people seem to give seem to always start with telling you you can't have null dates in .NET ( which we know ) but they don't know about our framework's handling nulls as #1/1/1800#  :(&lt;br&gt;</description><pubDate>Wed, 09 Jun 2010 14:45:57 GMT</pubDate><dc:creator>Charles R Hankey</dc:creator></item><item><title>RE: Ultragrid - ctrl-TAB won't work out of UG in groupbox when on TabPage</title><link>http://forum.strataframe.net/FindPost27361.aspx</link><description>I was dealing with other things around here, back to the matter. I have also posted your question in the Experts Exchange forum and will get back to it now. The first to accomplish this gives a shout! :D</description><pubDate>Wed, 09 Jun 2010 13:47:16 GMT</pubDate><dc:creator>Ivan George Borges</dc:creator></item><item><title>RE: Ultragrid - ctrl-TAB won't work out of UG in groupbox when on TabPage</title><link>http://forum.strataframe.net/FindPost27357.aspx</link><description>I have not been able to figure out where to intervene to translate the null in the control to #1/1/1800# in the BBS.  &lt;br&gt;
&lt;br&gt;
There is a BeforeRowUpdate and AfterRowUpdate and I can test for e.row.cells("DateofSale").value and there is a .setvalue method but I don't see how to change the data coming from the BBS to a null if it is #1/1/1800# and to change it back on the update.&lt;br&gt;
&lt;br&gt;
I don't have source, so I'm poking around in the dark.  Have a question up on StackOverflow but didn't have any luck there on my last Ultragrid question.  The tech support guy on the Infragistics forum really doesn't seem to have his heart in it and doesn't answer questions very well.  A couple of people have asked questions like this and his answers have not been helpful.&lt;br&gt;
&lt;br&gt;
Anybody know if DevExpress grid has this problem?  I have their trial right now and considering switching over.&lt;br&gt;
&lt;br&gt;</description><pubDate>Wed, 09 Jun 2010 10:12:51 GMT</pubDate><dc:creator>Charles R Hankey</dc:creator></item><item><title>RE: Ultragrid - ctrl-TAB won't work out of UG in groupbox when on TabPage</title><link>http://forum.strataframe.net/FindPost27351.aspx</link><description>Yep, guess we have this ahead of us. :ermm:&lt;/P&gt;&lt;P&gt;The SF wrapper UltraDateTimePicker works just fine on itself, but when we set it to be the column editor, no luck.</description><pubDate>Wed, 09 Jun 2010 06:42:59 GMT</pubDate><dc:creator>Ivan George Borges</dc:creator></item><item><title>RE: Ultragrid - ctrl-TAB won't work out of UG in groupbox when on TabPage</title><link>http://forum.strataframe.net/FindPost27343.aspx</link><description>I only have one data field in my grid which defaults to now() so I didn't realize it was a problem until you mention it and I try to blank the date.&lt;br&gt;
&lt;br&gt;
I just tried using an SF wrapper UltraDateTimePicker as an editor component and at least the error message is different.  When I blank the field in the grid I get an error that i have violated the minimum on the datetimeconstraint and the date is set to 01/01/0001&lt;br&gt;
&lt;br&gt;
I think modifying an editorcomponent is going to be the way to go, but haven't worked it out yet.  Perhaps modifying the SF picker control to implement that interface Infragistics says is necessary to use a control in an Ultragrid ?  Or just using a straight winforms datetime picker and implementing that interface as well as the logic that SF uses to blank dates on null?</description><pubDate>Tue, 08 Jun 2010 09:42:47 GMT</pubDate><dc:creator>Charles R Hankey</dc:creator></item><item><title>RE: Ultragrid - ctrl-TAB won't work out of UG in groupbox when on TabPage</title><link>http://forum.strataframe.net/FindPost27326.aspx</link><description>By the way, since we are in this UltraGrid marathon, have you been dealing with date columns on the grids? I am going nuts trying to duplicate the DateTimePicker behavior where 1/1/1800 should show empty date and entering empty date should save 1/1/1800 to the table.</description><pubDate>Mon, 07 Jun 2010 17:04:37 GMT</pubDate><dc:creator>Ivan George Borges</dc:creator></item><item><title>RE: Ultragrid - ctrl-TAB won't work out of UG in groupbox when on TabPage</title><link>http://forum.strataframe.net/FindPost27302.aspx</link><description>[quote][b]Greg McGuffey (06/02/2010)[/b][hr]Charles is like a kid in a candy store..... :w00t:[/quote]&lt;br&gt;
That is a common effect from SF :hehe:</description><pubDate>Wed, 02 Jun 2010 21:58:02 GMT</pubDate><dc:creator>Edhy Rijo</dc:creator></item><item><title>RE: Ultragrid - ctrl-TAB won't work out of UG in groupbox when on TabPage</title><link>http://forum.strataframe.net/FindPost27301.aspx</link><description>Charles is like a kid in a candy store..... :w00t:</description><pubDate>Wed, 02 Jun 2010 21:15:19 GMT</pubDate><dc:creator>Greg McGuffey</dc:creator></item><item><title>RE: Ultragrid - ctrl-TAB won't work out of UG in groupbox when on TabPage</title><link>http://forum.strataframe.net/FindPost27292.aspx</link><description>Actually [u]we[/u] got it working :D&lt;br&gt;
&lt;br&gt;
It turns out my code to override the tabcontrol and to set focus coming out of the groupbox was the right thing.&lt;br&gt;
&lt;br&gt;
But [u]your[/u] baseform code in ProcessCmdKey was what was actually making it leave the grid.  That is the right place to put it ( though it still seems to have the problem of not knowing where to go next )&lt;br&gt;
&lt;br&gt;
I took out your baseform code and it stopped working.  Put it back in, took out my Ultragrid onkeydown code for the navigation and it still works.  &lt;br&gt;
&lt;br&gt;
Oh, and I subclassed groupbox to call me.controls(0).focus() on Enter to be used where it just contains a grid.  Created a property NextControl ( string ) and am trying to figure out how to say, in the Leave of the groupbox class "Set focus to the control named NextControl"&lt;br&gt;
&lt;br&gt;
Here's the latest&lt;br&gt;
&lt;br&gt;</description><pubDate>Wed, 02 Jun 2010 13:37:09 GMT</pubDate><dc:creator>Charles R Hankey</dc:creator></item><item><title>RE: Ultragrid - ctrl-TAB won't work out of UG in groupbox when on TabPage</title><link>http://forum.strataframe.net/FindPost27290.aspx</link><description>Brilliant, Charles! Great to hear you got it working. ;)</description><pubDate>Wed, 02 Jun 2010 12:41:48 GMT</pubDate><dc:creator>Ivan George Borges</dc:creator></item><item><title>RE: Ultragrid - ctrl-TAB won't work out of UG in groupbox when on TabPage</title><link>http://forum.strataframe.net/FindPost27289.aspx</link><description>:D:D:D:D:D:D:D&lt;br&gt;
&lt;br&gt;
Actually, it [b]is[/b] kind of easy. ( or at least the 90% I have so far is )&lt;br&gt;
&lt;br&gt;
First, the ctrl-tab handled by the tabcontrol has to be disabled.  In the subclass of TabControl :&lt;br&gt;
&lt;br&gt;
[codesnippet]Public Class MyTabControl&lt;br&gt;
    Inherits MicroFour.StrataFrame.UI.Windows.Forms.TabControl&lt;br&gt;
&lt;br&gt;
    Protected Overrides Sub OnKeyDown(ByVal e As System.Windows.Forms.KeyEventArgs)&lt;br&gt;
        If e.KeyCode = Keys.Tab AndAlso e.Control Then&lt;br&gt;
            e.Handled = False&lt;br&gt;
            e.SuppressKeyPress = False&lt;br&gt;
        Else&lt;br&gt;
            MyBase.OnKeyDown(e)&lt;br&gt;
        End If&lt;br&gt;
&lt;br&gt;
    End Sub&lt;br&gt;
End Class[/codesnippet]&lt;br&gt;
&lt;br&gt;
This allows the cntrl-tab to fire in the Ultragrid and to actually leave the grid and the groupbox.  The problem is, I can't tell where it goes next.  the next control doesn't get focus, but tab again and the control after that gets focus, so it did honor the tab order but somehow lost energy for focusing.  &lt;br&gt;
&lt;br&gt;
But if I explicitly call the focus() of that next control in the tab order in groupbox.leave everything is good.&lt;br&gt;
&lt;br&gt;
[codesnippet]    Private Sub GroupBox1_Enter(ByVal sender As System.Object, ByVal e As System.EventArgs)  Handles GroupBox1.Enter&lt;br&gt;
        Me.grdCustomers.Focus()&lt;br&gt;
    End Sub&lt;br&gt;
&lt;br&gt;
    Private Sub GroupBox1_Leave(ByVal sender As Object, ByVal e As System.EventArgs) Handles GroupBox1.Leave&lt;br&gt;
        Me.Textbox2.Focus()&lt;br&gt;
    End Sub&lt;br&gt;
[/codesnippet]&lt;br&gt;
&lt;br&gt;
For now, this will work, though I want to make it generic and actually have a subclassed groupbox that knows how to set focus to its contained ultragrid on Enter and set focus to the next control according to the TabOrderController on Leave.&lt;br&gt;
&lt;br&gt;
I'll be working on it more but here is it so far &lt;br&gt;
&lt;br&gt;
&lt;br&gt;</description><pubDate>Wed, 02 Jun 2010 12:26:13 GMT</pubDate><dc:creator>Charles R Hankey</dc:creator></item><item><title>RE: Ultragrid - ctrl-TAB won't work out of UG in groupbox when on TabPage</title><link>http://forum.strataframe.net/FindPost27288.aspx</link><description>Not sure I understand.  Moving between tab pages isn't the problem.  I just need to subclass the tab control to completely ignore key input just as the form does, no?  I will look at the ultratab to see if I can turn it off there.  &lt;br&gt;
&lt;br&gt;
Somewhere a tabcontrol is handling control tab and I think all I need to do is convince it to ignore it.&lt;br&gt;
&lt;br&gt;
I'll read your reply over a couple of times to see if I'm getting  it  but I may end up just finding a combination that is *not* blocked by tabcontrol and using that.  So far I know ctrl-tab and ctrl-E won't work.  &lt;br&gt;
&lt;br&gt;
Maybe Stackoverflow will come to the rescue ...&lt;br&gt;
&lt;br&gt;
It just seems it should be easier than this, given the granular control we have over most of the .net events.&lt;br&gt;
&lt;br&gt;</description><pubDate>Wed, 02 Jun 2010 11:27:17 GMT</pubDate><dc:creator>Charles R Hankey</dc:creator></item><item><title>RE: Ultragrid - ctrl-TAB won't work out of UG in groupbox when on TabPage</title><link>http://forum.strataframe.net/FindPost27287.aspx</link><description>Hey, the **** should be&amp;nbsp; S h i f t ... but I might have spelt it wrongly. :D</description><pubDate>Wed, 02 Jun 2010 09:43:28 GMT</pubDate><dc:creator>Ivan George Borges</dc:creator></item><item><title>RE: Ultragrid - ctrl-TAB won't work out of UG in groupbox when on TabPage</title><link>http://forum.strataframe.net/FindPost27286.aspx</link><description>Yeah, I have been playing with it a lot too, but it is quite difficult to control this situation. &lt;/P&gt;&lt;P&gt;Anyway, I got a bit near... since you've got&amp;nbsp;Infragistics, I used the UltraTabControl instead, and the reason was that I could set a mneumonic to its tab names, like Tab&amp;amp;1, Tab&amp;amp;2, which will show Tab&lt;U&gt;1&lt;/U&gt;, Tab&lt;U&gt;2&lt;/U&gt;. I also set the TabStop for the control as False.&amp;nbsp;This way, you could tell your users that they need to Alt+1, Alt+2 and so on, using the mneumoics you assigned to the Tabs, to get them focused, and then the Tab key would allow them to navigate inside the controls you drop in each page, your UltraGrid for instance. To get out of them, they Alt+X the page again and use the ****+Tab to go to the previous control, and then Tab through the other controls outside the UltraTabControl as they wish...&lt;/P&gt;&lt;P&gt;What about that? :w00t:</description><pubDate>Wed, 02 Jun 2010 09:39:57 GMT</pubDate><dc:creator>Ivan George Borges</dc:creator></item><item><title>RE: Ultragrid - ctrl-TAB won't work out of UG in groupbox when on TabPage</title><link>http://forum.strataframe.net/FindPost27284.aspx</link><description>Well, no joy so far.  ProcessCmdKey gets the same results.  I also have not been able to get to work using a panel manager instead of TabControl.&lt;br&gt;
&lt;br&gt;
I think I need to subclass the TabControl and let the ctrl-TAB pass through to the grid as some of the other Ctrl combinations do ( my cntl-Delete I created works fine  - Ctrl-E does not )  I thought it might be in the SF TabControl but there is no code in the SF controls handling keystrokes.&lt;br&gt;
&lt;br&gt;
I have tried overriding ProcessCmdKey at the tabcontrol level to just return and not call the baseclass if the key combo is ctrl-tab but that doesn't work&lt;br&gt;
&lt;br&gt;
The processcmdkey on the baseform still sees the the TAB as controlkey if it is combined with control ( just as the onkeydown does ) &lt;br&gt;
&lt;br&gt;
I'm really stuck and the interface pretty much depends on this working  ( have a question up on Stackoverflow but no answers yet ) :w00t:&lt;br&gt;
&lt;br&gt;</description><pubDate>Wed, 02 Jun 2010 09:29:04 GMT</pubDate><dc:creator>Charles R Hankey</dc:creator></item><item><title>RE: Ultragrid - ctrl-TAB won't work out of UG in groupbox when on TabPage</title><link>http://forum.strataframe.net/FindPost27281.aspx</link><description>Sorry Ivan, I'm being an idiot.  i went back to the original thread and saw the code you posted about processcmdkey.&lt;br&gt;
&lt;br&gt;
I'll work with that and hopefully I can have this working by the time you get back to the office :blush:&lt;br&gt;</description><pubDate>Tue, 01 Jun 2010 12:16:50 GMT</pubDate><dc:creator>Charles R Hankey</dc:creator></item></channel></rss>