Professional Web Applications Themes

Simple Questions - ASP.NET Data Grid Control

I'm a newbie, and just moved to .NET programming, got confused with how datagrid works. Let say I have datagrid with 3 columns: ID Name Price 1 Book 10 2 Pencil 5 Questions: 1. How do I make it, so on RowClick, it will redirect to specific page (say: edit_row.aspx?id=[ id of clicked row ]) For example: if I click on Book, it will redirect me to edit_row.aspx?id=1 if I click on 5 (Price in the 2nd row), it will redirect me to edit_row.aspx?id=2 2. How to display Total Record in the left footer, and page navigation in the right ...

  1. #1

    Default Simple Questions

    I'm a newbie, and just moved to .NET programming, got confused with how
    datagrid works.
    Let say I have datagrid with 3 columns:

    ID Name Price
    1 Book 10
    2 Pencil 5

    Questions:
    1. How do I make it, so on RowClick, it will redirect to specific page (say:
    edit_row.aspx?id=[ id of clicked row ])
    For example: if I click on Book, it will redirect me to
    edit_row.aspx?id=1
    if I click on 5 (Price in the 2nd row), it will
    redirect me to edit_row.aspx?id=2
    2. How to display Total Record in the left footer, and page navigation in
    the right footer?
    Something like this:

    ID Name Price
    1 Book 10
    2 Pencil 5
    -----------------------------
    Total Record: 10 1 2 3...

    I hope my questions make sense to you.

    Thanks in advance for your help.

    - DC


    DC Guest

  2. #2

    Default Re: Simple Questions

    > 2. How to display Total Record in the left footer, and page navigation in
    > the right footer?
    > Something like this:
    >
    > ID Name Price
    > 1 Book 10
    > 2 Pencil 5
    > -----------------------------
    > Total Record: 10 1 2 3...

    Check out this article,
    [url]http://www.microsoft.com/india/msdn/articles/83.aspx[/url]



    --
    Saravana
    Microsoft MVP - ASP.NET
    [url]www.extremeexperts.com[/url]



    "DC" <dc_nospamemail.com> wrote in message
    news:uMpIAdKyDHA.1912TK2MSFTNGP09.phx.gbl...
    > I'm a newbie, and just moved to .NET programming, got confused with how
    > datagrid works.
    > Let say I have datagrid with 3 columns:
    >
    > ID Name Price
    > 1 Book 10
    > 2 Pencil 5
    >
    > Questions:
    > 1. How do I make it, so on RowClick, it will redirect to specific page
    (say:
    > edit_row.aspx?id=[ id of clicked row ])
    > For example: if I click on Book, it will redirect me to
    > edit_row.aspx?id=1
    > if I click on 5 (Price in the 2nd row), it will
    > redirect me to edit_row.aspx?id=2
    > 2. How to display Total Record in the left footer, and page navigation in
    > the right footer?
    > Something like this:
    >
    > ID Name Price
    > 1 Book 10
    > 2 Pencil 5
    > -----------------------------
    > Total Record: 10 1 2 3...
    >
    > I hope my questions make sense to you.
    >
    > Thanks in advance for your help.
    >
    > - DC
    >
    >

    Saravana [MVP] Guest

Similar Threads

  1. First 3D game, some simple questions....
    By Dolbarian in forum Macromedia Director 3D
    Replies: 2
    Last Post: March 10th, 11:07 AM
  2. A couple of simple forms questions.
    By drewangell in forum Dreamweaver AppDev
    Replies: 8
    Last Post: April 8th, 02:07 AM
  3. a simple chars questions
    By iperzazie in forum Macromedia Flash Actionscript
    Replies: 4
    Last Post: March 3rd, 11:13 AM
  4. Beginner - two simple questions please?
    By The Oracle in forum Sun Solaris
    Replies: 1
    Last Post: August 1st, 05:17 PM
  5. Simple Newbie Questions
    By nobody@nowhere.com in forum Informix
    Replies: 1
    Last Post: June 24th, 04:56 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139