Re: how to get the value of a non key field in RowCommand event?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Munna

    Re: how to get the value of a non key field in RowCommand event?

    Hi

    check out this code

    Dim r As Integer = Convert.ToInt32 (e.CommandArgum ent)
    Dim dbkey As String
    dbkey = GridView1.DataK eys(r).Value
    Dim fieldValue As String

    'used the r to key row and access the cells

    fieldValue = GridView1.Rows( r).Cells(0).Tex t

    Best of luck

    Munna
  • Ben

    #2
    Re: how to get the value of a non key field in RowCommand event?

    thank you very much

    "Munna" <munnaonc@gmail .comschreef in bericht
    news:7a4e81b6-da8f-42e2-b388-65b6af11e231@p2 5g2000hsf.googl egroups.com...
    Hi
    >
    check out this code
    >
    Dim r As Integer = Convert.ToInt32 (e.CommandArgum ent)
    Dim dbkey As String
    dbkey = GridView1.DataK eys(r).Value
    Dim fieldValue As String
    >
    'used the r to key row and access the cells
    >
    fieldValue = GridView1.Rows( r).Cells(0).Tex t
    >
    Best of luck
    >
    Munna

    Comment

    • Munna

      #3
      Re: how to get the value of a non key field in RowCommand event?

      On Jun 12, 12:03 am, "Ben" <b...@nol.vbwro te:
      thank you very much
      >
      "Munna" <munna...@gmail .comschreef in berichtnews:7a4 e81b6-da8f-42e2-b388-65b6af11e231@p2 5g2000hsf.googl egroups.com...
      >
      Hi
      >
      check out this code
      >
      Dim r As Integer = Convert.ToInt32 (e.CommandArgum ent)
      Dim dbkey As String
      dbkey = GridView1.DataK eys(r).Value
      Dim fieldValue As String
      >
      'used the r to key row and access the cells
      >
      fieldValue = GridView1.Rows( r).Cells(0).Tex t
      >
      Best of luck
      >
      Munna
      Glad to help you...

      best of luck

      Munna

      Comment

      Working...