Public Sub SortCommand_OnClick(ByVal Source As Object, ByVal E As DataGridSortCommandEventArgs)
DsAddressBook1 = Session("dsAddressUSA"
Dim dv As DataView = DsAddressBook1.ADDRESS_LST.DefaultView
dv.Sort = E.SortExpression
dgUSA.DataSource = dv
dgUSA.DataBind()
End Sub
The above Code not working for Sorting in DataGrid
I have
Allowsorting="True" and
SorExpression in BoundColumn
Is there any way to Sort DataGrid Columns
Karthik Bala
DsAddressBook1 = Session("dsAddressUSA"
Dim dv As DataView = DsAddressBook1.ADDRESS_LST.DefaultView
dv.Sort = E.SortExpression
dgUSA.DataSource = dv
dgUSA.DataBind()
End Sub
The above Code not working for Sorting in DataGrid
I have
Allowsorting="True" and
SorExpression in BoundColumn
Is there any way to Sort DataGrid Columns
Karthik Bala