Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8531047
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T09:23:40+00:00 2026-06-11T09:23:40+00:00

Following this example: http://msdn.microsoft.com/en-us/library/7tas5c80.aspx However, at run time, when I add rows to my

  • 0

Following this example:

http://msdn.microsoft.com/en-us/library/7tas5c80.aspx

However, at run time, when I add rows to my DataGridView and they are displayed, the column containing the CalendarColumn is blank up until when I click on it. Then, as soon as I click anywhere else, the column goes blank again. So it’s only available to be seen at the exact moment when you’re interacting with it.

Any ideas what could be causing this?

EDIT: Only relevant portion of code. Rest is done through the designer.

        private void LoadScheduleView()
    {
        // Get the keys
        var scheduleNames = _schedules.Current.Keys;

        // Get the current scheduled objects based on the keys (layoutnames).
        foreach (var scheduleName in scheduleNames)
        {
            var schedule = _schedules.Current[scheduleName];
            // Add the already existing schedule to the data grid view.
            schedulesDataGrid.Rows.Add(schedule.Date, schedule.Layout, schedule.CloseAllWindows);
        }
        //schedulesDataGrid.Sort(schedulesDataGrid.Columns[0], ListSortDirection.Ascending);

        DateTime scheduledTime = new DateTime();
        var rowsToLoop = schedulesDataGrid.Rows;
        foreach (DataGridViewRow row in rowsToLoop)
        {
            scheduledTime = (DateTime)row.Cells[0].Value;

            if (scheduledTime < DateTime.Now)
            {
                schedulesDataGrid.Rows.Remove(row);
            }

            //This will happen in sorted list order, therefore the first time it's after DateTime.Now, it will be the next layout to launch.
            else
            {
                var indexOfNextSchedule = schedulesDataGrid.Rows.IndexOf(row);
                schedulesDataGrid.FirstDisplayedScrollingRowIndex = indexOfNextSchedule;
                //schedulesDataGrid.Rows[indexOfNextSchedule].Selected = true;
                break;
            }
        }  
    }
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T09:23:41+00:00Added an answer on June 11, 2026 at 9:23 am

    It seems as though the problem lay in the fact that the CalendarCell was being derived from DataGridViewCell and not DataGridViewTextBoxCell. I’ll report back if I see that this causes any further issues…

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to follow this example: http://msdn.microsoft.com/en-us/library/aa179614%28SQL.80%29.aspx# It says to add the following
I'm following this walktrough: http://msdn.microsoft.com/en-us/library/879kf95c.aspx to add user login and register pages using out-of-the-box
I have been following the example on the bottom of this page: http://msdn.microsoft.com/en-us/library/microsoft.windows.controls.ribbon.ribbonapplicationmenu.auxiliarypanecontent.aspx to
I was working on my button template with this example: http://msdn.microsoft.com/en-us/library/ms753328.aspx I found the
I was following this article: http://msdn.microsoft.com/en-us/library/aa902637%28v=sql.80%29.aspx and my query for distinct count looks like
I've been following this link http://msdn.microsoft.com/en-us/library/ms731049.aspx for using WCF and ASP.NET MEmbership provider. However
I used this white paper from MS for reference: http://msdn.microsoft.com/en-us/library/ms345117(v=sql.90).aspx However I get an
It is said here: http://msdn.microsoft.com/en-us/library/aa211599%28v=office.11%29.aspx Before the procedure will run, you must connect the
I am pretty much following the example on this MSDN page: http://code.msdn.microsoft.com/Imoprt-Data-from-Excel-to-705ecfcd with 1
I'm running through the sql access example on the MSDN website (http://msdn.microsoft.com/en-us/library/hh202876(v=VS.92).aspx) and i

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.