Hi Rod Schmitzer,
You can achieve your requirement by
using below code snippet,
|
this.sfDataGrid1.CellRenderers["DateTime"] = new CustomDateTimeRenderer(this.sfDataGrid1);
public class CustomDateTimeRenderer : GridDateTimeCellRenderer
{
SfDataGrid DataGrid { get; set; }
public CustomDateTimeRenderer(SfDataGrid
dataGrid)
{
this.DataGrid = dataGrid;
}
protected override void OnInitializeEditElement(DataColumnBase column, RowColumnIndex
rowColumnIndex, SfDateTimeEdit uiElement)
{
uiElement.MonthCalendar.FirstDayOfWeek
= DayOfWeek.Monday;
base.OnInitializeEditElement(column, rowColumnIndex, uiElement);
}
}
|
We had prepared the sample for your requirement.
Please check this and revert us if you need further assistance.
Regards,
Dhanasekar M.
Attachment:
Column_Types_36718f59.zip