DataGrid issue

Discussion in 'ASP .Net Web Controls' started by PatLaf, Oct 29, 2003.

  1. PatLaf

    PatLaf Guest

    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.....
     
    PatLaf, Oct 29, 2003
    #1
    1. Advertising

  2. 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.
     
    Jacob Yang [MSFT], Oct 30, 2003
    #2
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Jordo
    Replies:
    0
    Views:
    469
    Jordo
    Oct 31, 2003
  2. =?Utf-8?B?UHVtcw==?=

    Datagrid Paging Issue

    =?Utf-8?B?UHVtcw==?=, Feb 5, 2004, in forum: ASP .Net
    Replies:
    1
    Views:
    630
    Paul M
    Feb 5, 2004
  3. Arvind P Rangan

    Same DataGrid Issue

    Arvind P Rangan, Mar 1, 2004, in forum: ASP .Net
    Replies:
    2
    Views:
    654
    Arvind P Rangan
    Mar 1, 2004
  4. Srini
    Replies:
    11
    Views:
    991
    Arne Vajhøj
    Jun 1, 2008
  5. Andreas Klemt
    Replies:
    0
    Views:
    334
    Andreas Klemt
    Oct 8, 2003
Loading...

Share This Page