title: how to decrease decimal places in gridview column asp.net C#
body: <p>I want to show only 2 decimal places in gridview column. column name is InsuaranceAmount,TotalAmount and TravelAssistAmoun.</p>
  
  <pre><code>for (int i = 0; i &lt; bookingDetailsEmailRS.Length - 1; i++)
   {
  BookingDetailsEmailRS[] bookingDetailsEmailRS = b.GetBookingDetails(soap, emailid, out    errorCode, out  errorAtNode);
   GridView1.DataSource = bookingDetailsEmailRS.Select(obj =&gt; new
          {
              TravelerName = obj.Travelers[0].FirstName + obj.Travelers[0].MiddleName + obj.Travelers[0].LastName,
              obj.BookingNumber,
              obj.BookingStatus,
              obj.ContactNumber,
              obj.CouponDiscountAmount,
              obj.DepartureDate,
              obj.FromCity,
              obj.ToCity,
              obj.PaidAmount,
              obj.TicketType,
              obj.InsuaranceAmount,
              obj.TotalAmount,
              obj.TravelAssistAmount
          }).ToList();
  
  
          GridView1.DataBind();    
   }
  </code></pre>
  
  <p>In this variable bookingDetailsEmailRS, I got the response.</p>