Click here to Skip to main content
16,022,417 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i was working on datagridview and i used cellendedit event but i want to do that event for specified cells , how can i do that? and how can i use a delegate for specified cell events?
Posted

1 solution

You just need to specify the cell number friend as follows

DataGridViewCell cell = dataGridView1.Rows[0].Cells[0]

More specifically

DataGridViewCell cell = dataGridView1.Rows[0].Cells[0];
dataGridView1.CurrentCell = cell;
dataGridView1.BeginEdit(true);

So you can fire event on specific cell

Regards
Yogesh
 
Share this answer
 
v2

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