[Webinar] Streamline your web hosting managementRegister Today

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 267
  • Last Modified:

tab control in datagridview visual 2013

hello
i want use tab control in datagrid so user can enter data directly in datadgridview
0
ajaymaster1558
Asked:
ajaymaster1558
  • 6
  • 4
  • 2
1 Solution
 
Éric MoreauSenior .Net ConsultantCommented:
0
 
Jacques Bourgeois (James Burger)PresidentCommented:
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
 
ajaymaster1558Author Commented:
i want it in DataGridView
0
Never miss a deadline with monday.com

The revolutionary project management tool is here!   Plan visually with a single glance and make sure your projects get done.

 
Jacques Bourgeois (James Burger)PresidentCommented:
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
 
ajaymaster1558Author Commented:
i want when user press enter key in datagrid sell in must go to next cell like we use tab in datagridview i
0
 
ajaymaster1558Author Commented:
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
 
Éric MoreauSenior .Net ConsultantCommented:
0
 
ajaymaster1558Author Commented:
ok i get this link but how i use this example >>>><<<
0
 
Éric MoreauSenior .Net ConsultantCommented:
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
 
ajaymaster1558Author Commented:
ok i get mydgv in tool box but it still not work as next cell when i press enter key \
0
 
Éric MoreauSenior .Net ConsultantCommented:
haven't you asked for the tab key? Replace Keys.Tab with Keys.Enter and you should be good.
0
 
ajaymaster1558Author Commented:
ok i get it
0

Featured Post

Never miss a deadline with monday.com

The revolutionary project management tool is here!   Plan visually with a single glance and make sure your projects get done.

  • 6
  • 4
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now