GridDataTimeColumn FirstDayOfWeek

How do you set the first day of the week value of the editable GridDataTimeColumn column types in a grid? I've been poking around and struggling to find it.


2 Replies

RU Russ February 22, 2022 12:03 PM UTC

Think I've answered my own question....unless there is a better way


private void sfDataGrid1_EditingControlShowing(object sender, Syncfusion.WinForms.DataGrid.Events.DataGridEditingControlShowingEventArgs e)

    {

        if (e.Column is GridDateTimeColumn)

        {

            var ctrl = (Syncfusion.WinForms.Input.SfDateTimeEdit)e.Control;

            ctrl.MonthCalendar.FirstDayOfWeek = DayOfWeek.Monday;

        }

    }



SS Sampathnarayanan Sankaralingam Syncfusion Team February 22, 2022 02:17 PM UTC

Hi Russ, 

We are glad to know that the reported problem has been resolved at your end. Please let us know if you have any further queries on this. We are happy to help you😊

Regards, 
Sampath Narayanan.S 


Loader.
Up arrow icon