title: Remove first character from a string using c#
body: <p>I am using the below code to delete my grid rows. Also I need to remove $ symbol, because when removing it causes problems while deleting. 
   I used this code to replace $ sign to empty space and it doesn't help. Can anyone correct me?</p>
  
  <pre><code> string Dollar = Dollars.Text.ToString();
   string dolreplace = Dollar.Substring(1, Dollar.Length - 1);
  </code></pre>
  
  <p>So I need to remove the dollar symbol appearing for Dollar column.</p>
  
  <pre><code>protected void Details_RowDeleting(object sender, GridViewDeleteEventArgs e)
  {
      Label ECode = (Label)Details.Rows[e.RowIndex].FindControl("lblCode");
      Label Dollars = (Label)Details.Rows[e.RowIndex].FindControl("lblDollars");
      string Dollar = Dollars.Text.ToString();
      string RemoveDollar = Dollar.Substring(1, Dollar.Length - 1);
      SqlConnection con = new SqlConnection(CS);
      con.Open();
       SqlCommand cmd = new SqlCommand("Delete from Application where Code= @Code and Dollar_Amount= @Dollars", con);
      cmd.Parameters.AddWithValue("@Code", Convert.ToDouble(Code.Text));
      cmd.Parameters.AddWithValue("@Dollars", Convert.ToInt32(RemoveDollar));
      cmd.ExecuteNonQuery();
      con.Close();
      ScriptManager.RegisterClientScriptBlock(this, this.GetType(), "alert", "alert('Deleted successfully');", true);
      BindGrid();
  }
  </code></pre>