Wrox Programmer Forums
Go Back   Wrox Programmer Forums > .NET > .NET 1.0 and Visual Studio.NET > VS.NET 2002/2003
VS.NET 2002/2003 Discussions about the Visual Studio.NET programming environment, the 2002 (1.0) and 2003 (1.1). ** Please don't post code questions here ** For issues specific to a particular language in .NET, please see the other forum categories.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the VS.NET 2002/2003 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old January 29th, 2004, 08:41 AM
Registered User
Join Date: Jan 2004
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to srinirs
Default Setting Focus-Extended DateTimeColumn in DataGrid

Hi ,

       I have user control, basically it is a textbox control derived from DateTimePicker.I have extended the DataGrid to

show the Datetime as one of the Columns.The Problem i am facing now is that ,when i tab in the Datetime column in the Grid

the focus is not setting in the DateTime Column.I need to set the focus to the DateTimeColumn.Please suggest a solution for


Srinivasa Raghavan
Old February 5th, 2004, 12:51 PM
Registered User
Join Date: Feb 2004
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts

You can use the following code to extend datetime control and use this control insted of dateTimePicker

Public Class AdvDateTimePicker
        Inherits DateTimePicker
        Private WM_KEYUP As Integer = &H101

        Protected Overrides Sub WndProc(ByRef m As System.Windows.Forms.Message)
            If m.Msg = WM_KEYUP Then
                'ignore keyup to avoid problem with
            End If
        End Sub 'WndProc
End Class

Jitendra Kumar Vemula,

Similar Threads
Thread Thread Starter Forum Replies Last Post
Setting Cursor focus in a column in datagrid johnsonlim026 .NET Framework 1.x 0 July 5th, 2006 08:34 PM
Setting Cursor focus in a column in datagrid johnsonlim026 ADO.NET 0 July 5th, 2006 08:33 PM
Setting Focus on a Sub Form Brendan Bartley Access 1 August 8th, 2005 02:41 AM
Setting the Focus BSkelding ASP.NET 1.0 and 1.1 Professional 1 May 12th, 2005 01:40 PM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.