How Can I Drive Tab in Data Grid

A

andrewcw

I have a DataGrid. I update a CELL in the DataGrid with
the value the user choses from a DateTimePicker.

The update is only visible in the grid when I tab over to
an adjacent cell. How do I coerce/raise a Tab event after
I load the cell with the new date ?

Thanks Andrew
 
J

Jeffrey Tan[MSFT]

Hi Andrewcw,

Thanks for posting in this group.
I think you embed your datetimepicker in the cell, so when you select a
date, the focus() is in the current cell, the selected change does reflect
into the cell.
You can use datagrid.refresh method or update method to force it reflect
change.

If you have anything unclear, please feel free to let me know.

Best regards,
Jeffrey Tan
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.

--------------------
| Content-Class: urn:content-classes:message
| From: "andrewcw" <[email protected]>
| Sender: "andrewcw" <[email protected]>
| Subject: How Can I Drive Tab in Data Grid
| Date: Fri, 31 Oct 2003 11:04:39 -0800
| Lines: 8
| Message-ID: <[email protected]>
| MIME-Version: 1.0
| Content-Type: text/plain;
| charset="iso-8859-1"
| Content-Transfer-Encoding: 7bit
| X-Newsreader: Microsoft CDO for Windows 2000
| X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4910.0300
| Thread-Index: AcOf4dWg4uIdBj7PQyG1FSuFqL3Txg==
| Newsgroups: microsoft.public.dotnet.languages.csharp
| Path: cpmsftngxa06.phx.gbl
| Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.languages.csharp:195802
| NNTP-Posting-Host: TK2MSFTNGXA14 10.40.1.166
| X-Tomcat-NG: microsoft.public.dotnet.languages.csharp
|
| I have a DataGrid. I update a CELL in the DataGrid with
| the value the user choses from a DateTimePicker.
|
| The update is only visible in the grid when I tab over to
| an adjacent cell. How do I coerce/raise a Tab event after
| I load the cell with the new date ?
|
| Thanks Andrew
|
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top