Saving the data modification before the DataGrid lost the focus

xiaoxiao2021-03-06  102

Private void DataGrid1_leave (Object Sender, System.EventArgs E)

{

CurrencyManager mycurrencymanager = (currenufactageManager) DataGrid1.bindingContext [dataGrid1.datasource, DataGrid1.datamember];

INT rowtoedit = mycurrencymanager.position;

DataGridColumnStyle DGC = DataGrid1.tablestyles [0] .gridcolumnstyles [0];

DataGrid1.Endedit (DGC, RowToEdit, False);

Mycurrencymanager.endcurrendedit ();

//mycurrencymanager.refresh ();

}

转载请注明原文地址:https://www.9cbs.com/read-124368.html

New Post(0)