Unable to pass parameters to method

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • kimbred
    New Member
    • Jan 2009
    • 47

    Unable to pass parameters to method

    Can someone explain what I'm doing wrong in my attempt to pass parameter values to my delete method. The first value that I get from the profile is passed, but the values taken from the selected row aren't passed (actually passing the default value of 0). I have attached a printscreen that may help. Thanks in advance.
    Attached Files
  • Plater
    Recognized Expert Expert
    • Apr 2007
    • 7872

    #2
    I think your printscreen got edited, its waaay to small to read

    Comment

    • kimbred
      New Member
      • Jan 2009
      • 47

      #3
      Maybe this will help.
      Attached Files

      Comment

      • Plater
        Recognized Expert Expert
        • Apr 2007
        • 7872

        #4
        I don't know what you put in there, but it was no .doc file I could read.
        EDIT: ok it should really be a docx file

        Comment

        • kimbred
          New Member
          • Jan 2009
          • 47

          #5
          Let me try this again.

          Comment

          • kimbred
            New Member
            • Jan 2009
            • 47

            #6
            I guess what I'm trying to do is get the value of the cell (any cell) of the selected row. For some reason, I'm not getting that across to Visual Studio. I need to get two values from the selected grid row to pass along with the employee number to the delelte method.

            Comment

            • Plater
              Recognized Expert Expert
              • Apr 2007
              • 7872

              #7
              Well I can't say as I've used the designer gui to do that kinda stuff, someone else might be able to help though

              Comment

              • kimbred
                New Member
                • Jan 2009
                • 47

                #8
                Would you have a suggestion on how you would do it? I'm open to do what I need to to get the task completeed.

                Comment

                • amirghaffarie1362
                  New Member
                  • Jan 2009
                  • 19

                  #9
                  i couldnt get whats the problem is ?/ you could get all value from the row that is selected ?????

                  Comment

                  • kimbred
                    New Member
                    • Jan 2009
                    • 47

                    #10
                    I have to do it indirectly. I get the e.rowindex if I get all the values on the updating event. The I click the edit button, the value of the column in the dropdown column dissappears as well.

                    Comment

                    • amirghaffarie1362
                      New Member
                      • Jan 2009
                      • 19

                      #11
                      Dim index As Integer = Convert.ToInt32 (e.rowindex)
                      Dim row As GridViewRow = GridViewSubject .Rows(index)
                      row.Cells(0).Te xt

                      Comment

                      Working...