问题
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