Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Web Controls > DataGrid issue

Reply
Thread Tools

DataGrid issue

 
 
PatLaf
Guest
Posts: n/a
 
      10-29-2003
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.DataGridSortCommandEvent Args)
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.....
 
Reply With Quote
 
 
 
 
Jacob Yang [MSFT]
Guest
Posts: n/a
 
      10-30-2003
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.

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Data Storage Issue (Basic Issue) Srini Java 11 06-01-2008 01:17 AM
Service Pack 2: login issue's and power management issue's ?!? Skybuck Flying Windows 64bit 0 04-07-2007 03:12 PM
inspiron 8200 video issue and hd issue the pez lover Computer Support 1 02-05-2007 02:44 AM
Major ActiveX Domain issue. NOT LOCAL PC ISSUE joe.valentine@gmail.com Computer Support 8 02-06-2006 09:03 PM
To all Gurus: How can I edit/update a DataGrid in a DataGrid (nested DataGrid)? Possible? Andreas Klemt ASP .Net Datagrid Control 0 10-08-2003 01:19 AM



Advertisments