Look at the following part of code, maybe it will help:
<columns>
<asp:hyperlinkfield xmlns:asp="#unknown">
DataNavigateUrlFields="UserId"
DataNavigateUrlFormatString="userProfile.aspx?ID={0}"
DataTextField="UserName"
HeaderText="User Name"
SortExpression="UserName" />
</asp:hyperlinkfield></columns>
Also, you can find a full discussion here:
http://forums.asp.net/t/1086879.aspx[
^]