Solved

tab control in datagridview visual 2013

Posted on 2014-12-01
12
253 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
  • 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
Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

 
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 500 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

Webinar: Aligning, Automating, Winning

Join Dan Russo, Senior Manager of Operations Intelligence, for an in-depth discussion on how Dealertrack, leading provider of integrated digital solutions for the automotive industry, transformed their DevOps processes to increase collaboration and move with greater velocity.

Question has a verified solution.

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

For most people, the WrapPanel seems like a magic when they switch from WinForms to WPF. Most of us will think that the code that is used to write a control like that would be difficult. However, most of the work is done by the WPF engine, and the W…
This article shows how to deploy dynamic backgrounds to computers depending on the aspect ratio of display
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…
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.

839 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