Let me preface this by - Like donjuanwu... my gridview disappears when I click any header - HOWEVER, I am not using any paging, my business did not request paging, they prefer to scroll down the page.
Please help me with the 2 following strings....
This is how they appear in your post:
private string GridViewSortDirection
{
get { return ViewState["SortDirection"] as string ?? "ASC"; }
set { ViewState["SortDirection"] = value; }
}
For my application, I have to translate them to Visual Basic
So they look like this:
Private Property GridViewSortDirection() As String
Get
Return ViewState("SortDirection") as String ?? "ASC"
End Get
Set (ByVal Value As String)
ViewState("SortDirection") = value
End Set
End Property
Private Property GridViewSortBLOCKED EXPRESSION As String
Get
Return ViewState("SortBLOCKED EXPRESSION as String ?? String.Empty
End Get
Set (ByVal Value As String)
ViewState("SortBLOCKED EXPRESSION = value
End Set
End Property
I get a blue squiggly line under both of these --------> String ?? "ASC" and as String ?? String.Empty
"End of Statement Expected"
But clearly you are running this code as is.... what do I need to do to adjust them so they work for me?
I have successfully translated the other necessary components.