hi all
how to add cssClass for header style
protected void grdProducts_Sorting(object sender, GridViewSortEventArgs e)
{
string sortingDirection = string.Empty;
if (direction == SortDirection.Ascending)
{
direction = SortDirection.Descending;
sortingDirection = "Desc";
grdProducts.HeaderRow.Cells[GetColumnIndex(e.SortExpression)].CssClass = "AscendingHeaderStyle";
}
}
it's doesn't working
getting error
Error 4 The name 'GetColumnIndex' does not exist in the current context
how can solve this..?
best regards
diginaz
Go to the complete details ...