User Profile

Collapse

Profile Sidebar

Collapse
l3d007
l3d007
Last Activity: Jan 25 '08, 07:11 PM
Joined: Jun 19 '07
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • l3d007
    started a topic GridView Sorting Problem
    in .NET

    GridView Sorting Problem

    I used this example straight from msdn in a gridview that already sorts based on each column. For some reason I cannot get it to sort based on two sorting expressions.Is there some property of the grid view i have to set in order for this to work?

    Code:
    <%@ Page language="C#" %>
    
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    ...
    See more | Go to post

  • nm guys I figured it out...


    have to declare every event in the GridView control like the following:

    <asp:GridView ID="gvSearchLis t" runat="server"
    DataSourceID="d sSearchList"
    DataKeyNames="S erviceIdea_ID"
    OnSelectedIndex Changed="gvSear chList_Selected Index Changed">

    except for my event
    See more | Go to post

    Leave a comment:


  • Please help not understanding calling function on event?

    i found this excerpt on another site

    to get the sum of a column in gridview u can use the below function
    double runningtotal ;
    Code:
    public void detailsGridView_RowDataBound(object sender, GridViewRowEventArgs e)
       {
       if (e.Row.RowType == DataControlRowType.DataRow)
       {
           
       runningtotal += Convert.ToDouble(DataBinder.Eval(e.Row.DataItem, " type the field name"));
    ...
    See more | Go to post

  • l3d007
    started a topic could this be done in SQL???

    could this be done in SQL???

    how could this psuedocode be accomplished in SQL

    foreach record( table_1){

    Select x.table2 FROM table_2
    WHERE y.table_2 = y.table_1

    update set x.table_1 = x.table_2
    }
    See more | Go to post

  • i ran into this issue the other day

    SELECT name FROM sysobjects WHERE id IN ( SELECT id FROM syscolumns WHERE name like '%lastname %' )

    if your doing this in SQL server just open up a sql command and execute this...
    See more | Go to post

    Leave a comment:


  • l3d007
    replied to New Job:How to tackle???
    thanks for the response...i was thinking about leaving comments in the code myself thats a good idea
    See more | Go to post

    Leave a comment:


  • l3d007
    started a topic New Job:How to tackle???

    New Job:How to tackle???

    I just started a new job, this is actually my first job out of college. The old programmer left the company abruptly and there was no transition between him and myself. I pretty much have a code base and naming conventions to try and piece this application together because he did not comment his code. There are no database diagrams to view relations in the db. How do you guys usually attack trying to make modifications to code your unfamiliar wi...
    See more | Go to post
No activity results to display
Show More
Working...