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
i want use tab control in datagrid so user can enter data directly in datadgridview
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.
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.
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.
A DataGridView contains cells. I do not see what you mean by using a TabControl in a datagrid.
ASKER
i want when user press enter key in datagrid sell in must go to next cell like we use tab in datagridview i
ASKER
i use this code but it not work for me
private void dataGridView1_KeyDown(obje ct sender, KeyEventArgs e)
{
if (e.KeyCode == Keys.Enter)
{
e.Handled = true;
SendKeys.SendWait("{tab}") ;
}
}
private void dataGridView1_KeyDown(obje
{
if (e.KeyCode == Keys.Enter)
{
e.Handled = true;
SendKeys.SendWait("{tab}")
}
}
there is a nice sample at http://stackoverflow.com/questions/11988922/tab-to-the-next-cell-in-a-datagridview
ASKER
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.
ASKER
ok i get mydgv in tool box but it still not work as next cell when i press enter key \
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
ok i get it
That looks like an ok sample: http://www.codeproject.com/Articles/17318/Add-Edit-and-Delete-in-DataGridView-with-Paging