如何解决如何使用devexpress将数据从gridcontrol编辑和保存到数据库
这是我显示的数据-之所以有它,是因为我将其输入了数据库:
ServiceRecord
和EmployeeRecord
来自]
2:result from postman 这是我的保存方法,我的代码不正确,我不知道正确的代码是什么:
int rowendix;
rowendix = GV_ServiceRec.GetDataSourceRowIndex(GV_ServiceRec.FocusedRowHandle);
Type_ServiceRecord MyServiceRec = new Type_ServiceRecord
{
EmployeeID = Txt_EmployeeID.Text,RecordID = Txt_RecordNumber.Text,JobTitle = GV_ServiceRec.GetRowCellDisplayText(rowendix,"JobTitle"),ServiceFrom = GV_ServiceRec.GetRowCellDisplayText(rowendix,"ServiceFrom"),ServiceTo = GV_ServiceRec.GetRowCellDisplayText(rowendix,"ServiceTo"),Salary = GV_ServiceRec.GetRowCellDisplayText(rowendix,"Salary"),EmploymentStatus = GV_ServiceRec.GetRowCellDisplayText(rowendix,"EmploymentStatus")
};
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。