GridView

GridView Sort Column Arrow Performance

I see code like the following a lot: protected void GridView1_RowCreated(object sender, GridViewRowEventArgs e) {      if (e.Row.RowType == DataControlRowType.Header)             if (String.Empty != this.GridView1.SortExpression)                        AddSortImage(e.Row);                          } The problem with this is that it fires for each row in the GridView slowing performance.  A better way is the following which only fires once

GridView Sort Column Arrow Performance Read More »