Thread ID: |
Created: |
Updated: |
Platform: |
Replies: |
151381 | Feb 10,2020 06:42 AM UTC | Feb 11,2020 09:19 AM UTC | WinForms | 3 |
![]() |
Tags: SfDataGrid |
this.sfDataGrid1.Columns.Add(new GridDateTimeColumn() { MappingName = "DateTime", AllowNull = true, Format = "MM/dd/yyyy", MinDateTime=DateTime.Now }); |
private void SfDataGrid1_CurrentCellBeginEdit(object sender, Syncfusion.WinForms.DataGrid.Events.CurrentCellBeginEditEventArgs e)
{
if (this.sfDataGrid1.CurrentCell.CellRenderer.GetControlValue() == null)
{
var rowData = e.DataRow.RowData as OrderInfo;
rowData.DateTime = DateTime.Now;
}
} |
This post will be permanently deleted. Are you sure you want to continue?
Sorry, An error occured while processing your request. Please try again later.
This page will automatically be redirected to the sign-in page in 10 seconds.