Link to home
Start Free TrialLog in
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
Avatar of Éric Moreau
Éric Moreau
Flag of Canada image

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

ASKER

i want it in DataGridView
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.
i want when user press enter key in datagrid sell in must go to next cell like we use tab in datagridview i
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}");
    }
}
ok i get this link but how i use this example >>>><<<
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.
ok i get mydgv in tool box but it still not work as next cell when i press enter key \
ASKER CERTIFIED SOLUTION
Avatar of Éric Moreau
Éric Moreau
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
ok i get it