Public Clarification Board

  • waelit
    Contest Holder
    • 6 years ago

    it Doesnt work. May be because date appears in coulmns in this format 1/1/2018 12:00:00 AM

    • 6 years ago
    1. AndyZo
      AndyZo
      • 6 years ago

      Did you try to change cells index? Maybe in your case it's 0 but not 1

      • 6 years ago
  • waelit
    Contest Holder
    • 6 years ago

    Could u Plz show me loaddate() function? How will u add date from gridview to date list?

    • 6 years ago
    1. AndyZo
      AndyZo
      • 6 years ago

      Hello. You can check the code here: https://goo.gl/MSfzVt

      • 6 years ago
    2. AndyZo
      AndyZo
      • 6 years ago

      or this one

      private void LoadDate()
      {
      dates = new List();
      DateTime dt;

      // add dates from GridView1 to the collection
      foreach (GridViewRow item in GridView1.Rows)
      {
      if (DateTime.TryParse(item.Cells[1].Text, out dt))
      {
      dates.Add(dt);
      }
      }

      // dates.Sort();
      }

      • 6 years ago

Show more comments Processing...