Item Cell Text in grid

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

  1. #1

    Default Item Cell Text in grid

    Thanks
    >-----Original Message-----
    >I have a grid that has a couple columns all are bound
    >columns except one..which is a button column. I use the
    >code
    >
    >TableCell IDColumn = e.Item.Cells[1];
    >FileName = IDColumn.Text;
    >
    >if I set the cell index to any of the bound columns I
    get
    >the text out of the cell...if I set the cell index to
    the
    >button column I don't get the value even though there is
    >data in the field?
    >
    >.
    >
    dsoltesz Guest

  2. Similar Questions and Discussions

    1. Cell Focus after adding a new DataGrid item
      I am trying to add a new item to a datagrid instance and then set focus to the first cell of the new record. There appears to be a sequencing...
    2. Data Grid cell press question...
      Ok, I've been working days on this and finally have broke down to ask. I'm importing via coldfusion, information from a database. Like the parks...
    3. Problem Editing Grid Cell
      When the user clicks on a cell, it properly opens for editing. When the user then types in new data, the old data is still there with the new data...
    4. Getting the value of another cell in Grid in ItemTemplate
      Here's a tough one, but one I've run into serveral times now. I know that you can use DataBinder.Eval(Container, "Field") to set a value of a...
    5. retrieving text from a selected data grid row cell...
      this was working Dim szMsgNumber = db_grid.SelectedItem.Cells(0).Text until i changed the first column (at index 0) to a ASP:ButtonColumn...
  3. #2

    Default Re: Item Cell Text in grid

    I had a similar problem. How can access a TextBox's value in the column
    footer when a button outside the DataGrid (that means I don't have e as
    DataGridItemEventArgs) is clicked...

    Serdar KALAYCI

    "dsoltesz" <dan_soltesz@hotmail.com> wrote in message
    news:2e3701c33fc1$fec5cdc0$a601280a@phx.gbl...
    > Thanks
    >
    > >-----Original Message-----
    > >I have a grid that has a couple columns all are bound
    > >columns except one..which is a button column. I use the
    > >code
    > >
    > >TableCell IDColumn = e.Item.Cells[1];
    > >FileName = IDColumn.Text;
    > >
    > >if I set the cell index to any of the bound columns I
    > get
    > >the text out of the cell...if I set the cell index to
    > the
    > >button column I don't get the value even though there is
    > >data in the field?
    > >
    > >.
    > >

    Serdar Kalayci 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