Avatar of ajaymaster1558
ajaymaster1558
 asked on

tab control in datagridview visual 2013

hello
i want use tab control in datagrid so user can enter data directly in datadgridview
C#.NET ProgrammingMicrosoft Development

Avatar of undefined
Last Comment
ajaymaster1558

8/22/2022 - Mon
Éric Moreau

Jacques Bourgeois (James Burger)

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.
ajaymaster1558

ASKER
i want it in DataGridView
Experts Exchange is like having an extremely knowledgeable team sitting and waiting for your call. Couldn't do my job half as well as I do without it!
James Murphy
Jacques Bourgeois (James Burger)

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.
ajaymaster1558

ASKER
i want when user press enter key in datagrid sell in must go to next cell like we use tab in datagridview i
ajaymaster1558

ASKER
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}");
    }
}
Get an unlimited membership to EE for less than $4 a week.
Unlimited question asking, solutions, articles and more.
Éric Moreau

ajaymaster1558

ASKER
ok i get this link but how i use this example >>>><<<
Éric Moreau

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.
All of life is about relationships, and EE has made a viirtual community a real community. It lifts everyone's boat
William Peck
ajaymaster1558

ASKER
ok i get mydgv in tool box but it still not work as next cell when i press enter key \
ASKER CERTIFIED SOLUTION
Éric Moreau

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
ajaymaster1558

ASKER
ok i get it