title: how to bind variable value in gridview?
body: <p>I want to display some <strong>variable value</strong> in <strong>gridview</strong>. </p>
  
  <p><strong>Code:</strong></p>
  
  <pre><code> int cnt = Convert.ToInt32(txtCount.Text);
   DateTime start = Convert.ToDateTime(txtStart.Text);
   DateTime end = Convert.ToDateTime(txtEnd.Text);
   TimeSpan datedifference = end.Subtract(start);
   int dateCount = datedifference.Days;
   float maxUpload = dateCount * 288;  
   float remainingUpload = maxUpload - cnt;
   float averageUpload = remainingUpload / (dateCount * 288) * 100;
  </code></pre>
  
  <p>I want show the value of <strong>dateCount</strong>, <strong>maxUpload</strong>,<strong>remainingUpload</strong> and <strong>averageUpload</strong> in a gridview. Please help me to find a proper solution. Thank you.</p>