| Author: Meetu Choudhary 16 Oct 2008 | Member Level: Gold | Rating: Points: 2 |
to generate serial number automatically
write the code on the event of your choice
where you get the cell of the grid and the row number
in the cell write the row number and you will get the sr. no.
== Thanks and Regards Meetu Choudhary
|
| Author: Nagarajan 16 Oct 2008 | Member Level: Gold | Rating: Points: 3 |
DataGrid's RowCreated event is raised when a row is created i nthe datagrid.
So, In the RowCreated event of the datagrid
e.Row.Cells[0].Text = dataGrid.Rows.Count;
Hope this helps Happy Coder
|