Casting Devexpress gridview column to CheckedListBoxItem c#

北城以北 提交于 2019-12-25 09:12:02

问题


I have a column int my gridview with CheckedListBoxItem type.I need the value of this in my submit button as you can see here :

private void btnSave_ItemClick_1(object sender, ItemClickEventArgs e)
 {
     gridView.CloseEditor();
     Convert.ToDateTime(gridView.GetRowCellValue(rowHandle, "ReturnDateTime"));
     CheckedListBoxItem confirms =(CheckedListBoxItem)(gridView.GetRowCellValue(rowHandle, "Confirm"));
 }

,

My confirms is not ,i think because of GetRowCellValue because it returns string .how can i use correct casting ?

来源:https://stackoverflow.com/questions/38657217/casting-devexpress-gridview-column-to-checkedlistboxitem-c-sharp

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!