title: Call a function from thread
body: <p>I am using the below code to call a method from thread function.It's not working.Please help me to do this.</p>
  
  <pre><code>DataTable dt = get_data(Convert.ToInt32(Start_From), Convert.ToInt32(End_To));
  foreach (DataRow dr in dt.Rows)
  {
    ThreadStart newThread = new ThreadStart(delegate { insert_Data(dr); });
    Thread myThread = new Thread(newThread);
  }
  
  public static DataTable get_Data(int form,int to)
  {
     .....
     return Dt;
  }
  
  [MTAThread]
  public static string insert_Data(DataRow dr)
  {
   .....SOme code here //This funcion not call 
  }
  </code></pre>