Hello,
I have RadGrid object, which populating by SPView. I turn on multy-select option. Then I choose some Items and try to add them in DataRow. But it doesnt work. There belove is my code which I use:
Please help to resolve this problem
Best Regards
I have RadGrid object, which populating by SPView. I turn on multy-select option. Then I choose some Items and try to add them in DataRow. But it doesnt work. There belove is my code which I use:
DataTable
dtTemp = new DataTable();
dtTemp.Columns.Add(
new DataColumn("SelectTasks", typeof(String)));
dtTemp.Columns.Add(
new DataColumn("TaskID", typeof(String)));
dtTemp.Columns.Add(
new DataColumn("Naznahenie", typeof(String)));
foreach (GridDataItem item in RadGrid1.SelectedItems)
{
DataRow dr = dtTemp.NewRow();
dr[
"SelectTasks"] = (String)item.Cells[0].Text;
dr[
"TaskID"] = (String)item.Cells[1].Text;
dr[
"Naznahenie"] = (String)item.Cells[2].Text;
dtTemp.Rows.Add(dr);
}
Please help to resolve this problem
Best Regards