J
Jeff
hi
asp.net 3.5
I have a gridview showing registered users. I want this gridview to always
sort on LastActivityDate.
This is my code (users is a MembershipUserCollection)
gvwUsers.DataSource = users;
gvwUsers.DataBind();
gvwUsers.Sort("LastActivityDate", SortDirection.Descending);
protected void gvwUsers_Sorting(object sender, GridViewSortEventArgs e)
{
}
<asp:GridView ID="gvwUsers" runat="server" Width="100%"
AlternatingRowStyle-BackColor="#FFFBD6" AllowSorting="true"
AutoGenerateColumns="false" OnSorting="gvwUsers_Sorting"
DataKeyNames="UserName">
the problem is that the girdview don't get sorted, I don't know what to
change...
any ideas?
asp.net 3.5
I have a gridview showing registered users. I want this gridview to always
sort on LastActivityDate.
This is my code (users is a MembershipUserCollection)
gvwUsers.DataSource = users;
gvwUsers.DataBind();
gvwUsers.Sort("LastActivityDate", SortDirection.Descending);
protected void gvwUsers_Sorting(object sender, GridViewSortEventArgs e)
{
}
<asp:GridView ID="gvwUsers" runat="server" Width="100%"
AlternatingRowStyle-BackColor="#FFFBD6" AllowSorting="true"
AutoGenerateColumns="false" OnSorting="gvwUsers_Sorting"
DataKeyNames="UserName">
the problem is that the girdview don't get sorted, I don't know what to
change...
any ideas?