Posted on: 6/25/2015 3:47:58 PM | Views : 797

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 ...