Click here to Skip to main content
16,018,158 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I need to Event for Datagridview that runs after add new row on * signed row
In other hand i need to run function after entering new row .
Posted

May be you need to be more specific.You can get all the event
of datagrid here:
for windform app:http://msdn.microsoft.com/en-us/library/system.windows.controls.datagrid%28v=vs.95%29.aspx[^]
for web:
http://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.datagrid.aspx[^]
Thanks
 
Share this answer
 
C#
private void myGrid_RowLeave(object sender, DataGridViewCellEventArgs e)
      {
          if (e.RowIndex == myGrid.NewRowIndex)
          {
                //code for leaving new row
          }
      }
 
Share this answer
 

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