title: Is there a way to get the ID of a select button from the EventArgs of a ListView SelectedIndexChanged?
body: <p>I have two buttons in a list view that adjust the position of that item, basically, moves it up or moves it down. Both buttons have the <code>CommandName="Select"</code> so I need to know if their ID is somewhere in the EventArgs so I can tell if the Up or the Down button was pressed.</p>
  
  <p>This is my temporary sol'n, maybe it'll give you a better idea of what I mean to do.</p>
  
  <pre><code>int s;
      public void iBtnUp_Click( object sender, EventArgs e )
      {
          s = 1;
      }
  
      public void iBtnDown_Click( object sender, EventArgs e )
      {
          s = 0;
      }
  
      public void lvSteps_SelectedIndexChanged( object sender, EventArgs e )
      {
          DataKey currentDataKey = this.lvSteps.DataKeys[ lvSteps.SelectedIndex ];
  
          int ID      = (int)currentDataKey.Values[0];
          int Step    = (int)currentDataKey.Values[1];
  
          clsProcessStep newProcessStep = new clsProcessStep()
          {
              ProcessStepID   = ID,
              StepNumber      = Step
          };
  
          newProcessStep.swapSteps( s );
      }
  </code></pre>