Har en DataGrid "GridViewRankingFinal"Sortering av rubriker i en DataGrid
som jag skulle vilja köra sortering av rubriker på har satt Allow Sorting till "True"
Error:
Line 56: RankingFinalListVO rfListVO = new RankingFinalListVO();
Line 57: rfListVO = cv.getQualifiedRankingFinal(DropDownListQueryTypeOfSelection.SelectedValue, DropDownListMaleFemale.SelectedValue); // Hämta RankingListan
Line 58: rfListVO.Sort = e.SortExpression;
Line 59: GridViewRankingFinal.DataSource = rfListVO;
Line 60: GridViewRankingFinal.DataBind();
Source File: c:\InternProjekt\Ver1.5\Bowling\UserControls\RankingFinal.ascx.cs Line: 58
<code c#>
void GridViewRankingFinal_Sorting(object sender, GridViewSortEventArgs e)
{
CommonValidation cv = new CommonValidation();
RankingFinalListVO rfListVO = new RankingFinalListVO();
rfListVO = cv.getQualifiedRankingFinal(DropDownListQueryTypeOfSelection.SelectedValue, DropDownListMaleFemale.SelectedValue); // Hämta RankingListan
rfListVO.Sort = e.SortExpression;
GridViewRankingFinal.DataSource = rfListVO;
GridViewRankingFinal.DataBind();
}
</ code>