P
PatLaf
Hello all,
In my previous post about the grid's sort event not
firing I didn't include the code. Here it is on the code
behind page.
Public Sub dgLaserEtch_SortCommand(ByVal source As
Object, ByVal e As
System.Web.UI.WebControls.DataGridSortCommandEventArgs)
Handles dgLaserEtch.SortCommand
DataGrid_Sort(dgLaserEtch.DataSource, e)
End Sub
Public Sub DataGrid_Sort(ByVal Src As Object, ByVal E
As DataGridSortCommandEventArgs)
Dim oDataView As Data.DataView = CType(Src,
Data.DataView)
oDataView.Sort = E.SortExpression
dgLaserEtch.DataBind()
End Sub
I believe that it is wired up correctly in the html code
but to make sure I'm including it as well.
<asp:datagrid id="dgLaserEtch"
OnSortCommand="dgLaserEtch_SortCommand" style="Z-INDEX:
103; LEFT: 80px; POSITION: absolute; TOP: 280px"
runat="server"
Width="600px" BorderStyle="Groove"
EnableViewState="False" ShowFooter="True">
<AlternatingItemStyle
ForeColor="White"
BackColor="#8080FF"></AlternatingItemStyle>
<ItemStyle
ForeColor="White"></ItemStyle>
<HeaderStyle
ForeColor="White" BorderStyle="Groove"></HeaderStyle>
</asp:datagrid>
I hope this will help someone point me in the direction
that I need to go so I can figure this out. I am new to
the .net environment so it seems that even the simplest
of things are difficult trying to convert from VB6.....
In my previous post about the grid's sort event not
firing I didn't include the code. Here it is on the code
behind page.
Public Sub dgLaserEtch_SortCommand(ByVal source As
Object, ByVal e As
System.Web.UI.WebControls.DataGridSortCommandEventArgs)
Handles dgLaserEtch.SortCommand
DataGrid_Sort(dgLaserEtch.DataSource, e)
End Sub
Public Sub DataGrid_Sort(ByVal Src As Object, ByVal E
As DataGridSortCommandEventArgs)
Dim oDataView As Data.DataView = CType(Src,
Data.DataView)
oDataView.Sort = E.SortExpression
dgLaserEtch.DataBind()
End Sub
I believe that it is wired up correctly in the html code
but to make sure I'm including it as well.
<asp:datagrid id="dgLaserEtch"
OnSortCommand="dgLaserEtch_SortCommand" style="Z-INDEX:
103; LEFT: 80px; POSITION: absolute; TOP: 280px"
runat="server"
Width="600px" BorderStyle="Groove"
EnableViewState="False" ShowFooter="True">
<AlternatingItemStyle
ForeColor="White"
BackColor="#8080FF"></AlternatingItemStyle>
<ItemStyle
ForeColor="White"></ItemStyle>
<HeaderStyle
ForeColor="White" BorderStyle="Groove"></HeaderStyle>
</asp:datagrid>
I hope this will help someone point me in the direction
that I need to go so I can figure this out. I am new to
the .net environment so it seems that even the simplest
of things are difficult trying to convert from VB6.....