ComponentOne EventsCalendar for ASP.NET Web Forms
Task-Based Help / Changing the Culture of a Schedule
In This Topic
    Changing the Culture of a Schedule
    In This Topic

    Each culture has different conventions and formats for displaying dates, time, numbers, and other information. This topic illustrates several different ways to set the culture of a C1EventsCalendar using the Culture property.

    Setting the Culture in Design View

    To set the culture of a C1EventsCalendar control, complete the following steps:

    1. Right-click the C1EventsCalendar control and then click Show Smart Tag to view the C1EventsCalendar Tasks menu.
    2. Click the drop-down arrow next to the Culture item.
    3. Select a culture from the list, for example ja-JP. Your C1EventsCalendar now uses the specified culture format, in this example, Japanese.

    Setting the Culture in Source View

    To set the culture in Source view, add Culture="ja-JP" to the <cc1:C1EventsCalendar> tag. Once you've set this property, your markup will resemble the following:

    To write code in Source View

    <cc1:C1EventsCalendar ID="C1EventsCalendar1" runat="server" Culture="ja-JP">

    Setting the Culture Programmatically

    To set the culture programmatically, add the following code into the Page_Load event:

    To write code in Visual Basic

    Visual Basic
    Copy Code
    CC1EventsCalendar1.Culture = new System.Globalization.CultureInfo("ja-JP")
    

    To write code in C#

    C#
    Copy Code
    C1EventsCalendar1.Culture = new System.Globalization.CultureInfo("ja-JP");
    
    See Also