update 20250819 sf
This commit is contained in:
@@ -73,8 +73,11 @@
|
||||
this.sfDataGrid1.AccessibleName = "Table";
|
||||
this.sfDataGrid1.AddNewRowPosition = Syncfusion.WinForms.DataGrid.Enums.RowPosition.Top;
|
||||
this.sfDataGrid1.AllowDeleting = true;
|
||||
this.sfDataGrid1.AllowFiltering = true;
|
||||
this.sfDataGrid1.AllowResizingColumns = true;
|
||||
this.sfDataGrid1.AutoSizeColumnsMode = Syncfusion.WinForms.DataGrid.Enums.AutoSizeColumnsMode.AllCells;
|
||||
this.sfDataGrid1.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.sfDataGrid1.FilterRowPosition = Syncfusion.WinForms.DataGrid.Enums.RowPosition.Top;
|
||||
this.sfDataGrid1.Location = new System.Drawing.Point(2, 27);
|
||||
this.sfDataGrid1.Name = "sfDataGrid1";
|
||||
this.sfDataGrid1.Size = new System.Drawing.Size(960, 486);
|
||||
|
||||
@@ -64,6 +64,20 @@ namespace OnDoc.UIControls.Administrator
|
||||
}
|
||||
|
||||
sfDataGrid1.DataSource = db.daten.Tables[0];
|
||||
|
||||
try { this.sfDataGrid1.Columns["CreatedOn"].Format = "yyyy-MM-dd HH:mm:ss"; } catch { }
|
||||
try { this.sfDataGrid1.Columns["erstellt_am"].Format = "yyyy-MM-dd HH:mm:ss"; } catch { }
|
||||
try { this.sfDataGrid1.Columns["erstelltam"].Format = "yyyy-MM-dd HH:mm:ss"; } catch { }
|
||||
try { this.sfDataGrid1.Columns["mutiert_am"].Format = "yyyy-MM-dd HH:mm:ss"; } catch { }
|
||||
try { this.sfDataGrid1.Columns["mutiertam"].Format = "yyyy-MM-dd HH:mm:ss"; } catch { }
|
||||
for (int i = 0; i< sfDataGrid1.Columns.Count ; i++)
|
||||
{
|
||||
if (sfDataGrid1.Columns[i].CellType == "DateTime")
|
||||
{
|
||||
sfDataGrid1.Columns[i].Format = "yyyy-MM-dd HH:mm:ss";
|
||||
}
|
||||
}
|
||||
this.sfDataGrid1.AllowResizingColumns = true;
|
||||
}
|
||||
|
||||
private void toolStripButton2_Click(object sender, EventArgs e)
|
||||
|
||||
Reference in New Issue
Block a user