title: Display gridview data on the basis of Array
body: <p>I have a button click on which I want to display <code>gridview</code></p>
  
  <p>Earlier it used to display on the basis of <code>Datatable</code></p>
  
  <p>But now I want to display on the basis of <code>Array</code> </p>
  
  <p>Here is the code</p>
  
  <pre><code>protected void btnSubmit_Click(object sender, EventArgs e)
  {
      var selectedItems = cmbEmp_Name.Items.Cast&lt;ListItem&gt;().Where(x =&gt; x.Selected).Select(x =&gt; x.Value).ToArray();
      var result = String.Join(",", selectedItems);
  
      string[] StrAreaInt = result.Split(new char[] { ',' });
  
      for (int i = 0; i &lt; StrAreaInt.Length; i++)
      {
          Muster_Process(StrAreaInt[i]); // length comes here
          HiddenDiv.Visible = true;
          grdMonthlyProc.Visible = true;
      }
  }
  </code></pre>