Column number of datagrid

Ask a Question related to ASP.NET General, Design and Development.

  1. #1

    Default Column number of datagrid

    Where can I read the index of column of a DataGrid where the user clicked
    on?
    With e.Item.ItemIndex I read the row number, but for the column?

    Thanks... and excuse me for my english.


    Mago Merlino Guest

  2. Similar Questions and Discussions

    1. calculate number of checked boxes in datagrid column
      How would I calculate number of checked checkboxes in datagrid column?
    2. How can I format a number column in a datagrid
      I tried <asp:BoundColumn DataField="Logins" HeaderText="Logins" DataFormatString="{#,##.0}"></asp:BoundColumn> But it blows up. Is there a...
    3. right align a number column in a datagrid
      How can right align a number column in a datagrid?
    4. how do i access a dropdownlists selected value in a datagrid edititemtemplate column from the selectedindexchanged event of another dropdownlist in a datagrid edititemtemplate column
      i am trying to trap the value of one dropdownlist (in a datagrid edititemtemplate column) at the time its selectedindexchanged event fires and use...
    5. Format Phone Number String in Datagrid Column
      Greetings, I have a 10 digit phone number stored as a string in a SQL server table. My datagrid currently displays it as 1234567890, but I would...
  3. #2

    Default Re: Column number of datagrid

    not sure maybe there is a indexof??

    "Mago Merlino" <magomerlinoNOSP@Mfreehtml.it> wrote in message
    news:OiwOa.2331$B8.1672@news.edisontel.com...
    > Where can I read the index of column of a DataGrid where the user clicked
    > on?
    > With e.Item.ItemIndex I read the row number, but for the column?
    >
    > Thanks... and excuse me for my english.
    >
    >

    Vincent V Guest

  4. #3

    Default Re: Column number of datagrid

    check out
    [url]http://www.c-sharpcorner.com/Code/2003/June/DataGridClientSideEvents.asp[/url]

    "Mago Merlino" <magomerlinoNOSP@Mfreehtml.it> wrote in message
    news:OiwOa.2331$B8.1672@news.edisontel.com...
    > Where can I read the index of column of a DataGrid where the user clicked
    > on?
    > With e.Item.ItemIndex I read the row number, but for the column?
    >
    > Thanks... and excuse me for my english.
    >
    >

    Sonali.NET[MVP] Guest

Posting Permissions

  • You may not post new threads
  • You may 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