【发布时间】:2018-06-13 13:06:35
【问题描述】:
我正在尝试获取 RadGridView 中选定行内单元格的值,我知道如何为 DataGridView 执行此操作,但无法转换代码。
if (rgv_customers.SelectedCells.Count > 0)
{
int selectedrowindex = rgv_customers.SelectedRows.RowIndex;
DataGridViewRow selectedRow = rgv_customers.Rows[selectedrowindex];
string comapany = Convert.ToString(selectedRow.Cells["Company"].Value);
}
以上代码适用于 DataGridView,有谁知道如何将其转换为 RadGridView?
【问题讨论】:
标签: c# radgridview