Hi Admins.
I'm using the following code to show the Serial Number on the RowHeaderColumn.
private
void
GridViewSaleItems_ViewCellFormatting(
object
sender, CellFormattingEventArgs e)
{
if
(e.CellElement
is
GridRowHeaderCellElement && e.Row
is
GridViewDataRowInfo)
{
e.CellElement.Text = (e.CellElement.RowIndex + 1).ToString();
e.CellElement.TextImageRelation = TextImageRelation.ImageBeforeText;
}
}
How can I Get this Serial Number (Like other Cell Values) When saving the Grid Rows