Solved

tab control in datagridview visual 2013

Posted on 2014-12-01
12
243 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 69

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
 
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
How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

 
LVL 69

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 69

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 69

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

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
LINQ question 7 21
Problem to go to Web page 2 50
XML & .net 5 18
Getfiles in vb.net 21 12
Many of us here at EE write code. Many of us write exceptional code; just as many of us write exception-prone code. As we all should know, exceptions are a mechanism for handling errors which are typically out of our control. From database errors, t…
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 …
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 tutorial demonstrates a quick way of adding group price to multiple Magento products.

708 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now