Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

tab control in datagridview visual 2013

Posted on 2014-12-01
12
Medium Priority
?
264 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
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
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

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.

Question has a verified solution.

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

Entity Framework is a powerful tool to help you interact with the DataBase but still doesn't help much when we have a Stored Procedure that returns more than one resultset. The solution takes some of out-of-the-box thinking; read on!
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
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 summaries big data hadoop online training demo (http://onlineitguru.com/big-data-hadoop-online-training-placement.html) , and covers basics in big data hadoop .

876 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