DataGrid issue

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.....
 
J

Jacob Yang [MSFT]

Hi Patlaf,

As I understand, this post is talking about the same issue as the following
post in this group.

AspNet DataGrid won't fire sort routine

One of my team members has replied you on that thread. Please check it and
work with him on this issue when you have time. Thank you for your
understanding.

Best regards,

Jacob Yang
Microsoft Online Partner Support
Get Secure! ¨C www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,764
Messages
2,569,567
Members
45,041
Latest member
RomeoFarnh

Latest Threads

Top