Solved

tab control in datagridview visual 2013

Posted on 2014-12-01
12
249 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
DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

 
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

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

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…
Performance in games development is paramount: every microsecond counts to be able to do everything in less than 33ms (aiming at 16ms). C# foreach statement is one of the worst performance killers, and here I explain why.
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 demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

919 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

16 Experts available now in Live!

Get 1:1 Help Now