Click here to Skip to main content
15,910,083 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
when i select a cell the record of the cell should move to another cell of same datagridview
Posted
Comments
CHill60 19-Nov-13 6:29am    
Have you written any code to achieve this?

1 solution

try This in CellEnter Event
if (e.ColumnIndex == 0)
            {
                dataGridView1.CurrentRow.Cells["ColName2"].Value = dataGridView1.CurrentRow.Cells["ColName1"].EditedFormattedValue.ToString();
                dataGridView1.CurrentRow.Cells["ColName1"].Value = "";
            }
 
Share this answer
 
Comments
agent_kruger 19-Nov-13 6:53am    
modify it according to your need.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900