Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

tab control in datagridview visual 2013

Posted on 2014-12-01
12
Medium Priority
?
260 Views
Last Modified: 2014-12-03
hello
i want use tab control in datagrid so user can enter data directly in datadgridview
0
Comment
Question by:ajaymaster1558
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 6
  • 4
  • 2
12 Comments
 
LVL 70

Expert Comment

by:Éric Moreau
ID: 40473510
0
 
LVL 40
ID: 40473924
Can you explain in more details what you want to do.

A DataGridView contains cells. I do not see what you mean by using a TabControl in a datagrid.

Also, make it clear whether you are talking about a DataGridView or a DataGrid. They are not the same thing.
0
 

Author Comment

by:ajaymaster1558
ID: 40475166
i want it in DataGridView
0
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 
LVL 40
ID: 40475262
Can you explain in more details what you want to do.

 A DataGridView contains cells. I do not see what you mean by using a TabControl in a datagrid.
0
 

Author Comment

by:ajaymaster1558
ID: 40475663
i want when user press enter key in datagrid sell in must go to next cell like we use tab in datagridview i
0
 

Author Comment

by:ajaymaster1558
ID: 40475668
i use this code but it not work for me

private void dataGridView1_KeyDown(object sender, KeyEventArgs e)
{
    if (e.KeyCode == Keys.Enter)
    {
        e.Handled = true;
        SendKeys.SendWait("{tab}");
    }
}
0
 
LVL 70

Expert Comment

by:Éric Moreau
ID: 40475790
0
 

Author Comment

by:ajaymaster1558
ID: 40476224
ok i get this link but how i use this example >>>><<<
0
 
LVL 70

Expert Comment

by:Éric Moreau
ID: 40476266
you should copy this class which extends the DataGridView to your project, replace the namespace of the class with your own, rebuild your project, and you will find the MyDGV in the toolbox. Add it to your form and enjoy.
0
 

Author Comment

by:ajaymaster1558
ID: 40476315
ok i get mydgv in tool box but it still not work as next cell when i press enter key \
0
 
LVL 70

Accepted Solution

by:
Éric Moreau earned 2000 total points
ID: 40476349
haven't you asked for the tab key? Replace Keys.Tab with Keys.Enter and you should be good.
0
 

Author Closing Comment

by:ajaymaster1558
ID: 40480028
ok i get it
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Today I had a very interesting conundrum that had to get solved quickly. Needless to say, it wasn't resolved quickly because when we needed it we were very rushed, but as soon as the conference call was over and I took a step back I saw the correct …
Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…
Monitoring a network: how to monitor network services and why? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the philosophy behind service monitoring and why a handshake validation is critical in network monitoring. Software utilized …

705 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question