Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
650
Multiselect in a ultraGridview
posted

Good Day all

Am using Ultragridweb on .NET 2.0. I want to have a multiselect on the grid and save it in a Arraylist. So far this is what i did

 

 

 

 

 

 

 

 

 

 

 

protected void ultraGridCycles_SelectedCellsChange(object sender, SelectedCellsEventArgs e)

{

 

ArrayList array = new ArrayList();

 

//For each cell that has been selected , Add its value in the Arraylist

 

 

 

 

 

 

 

foreach (UltraGridCell cell in

ultraGridCycles.DisplayLayout.SelectedCells)

{

 

 

if (cell.Value != null && cell.Value.ToString() != ""

)

{

 

 

// Session["Cycles"] = cell.Value; //ultraGridCycles.Rows[i].Cells[i].Value;

 

 

//Add a Value

array.Add(cell.Value);

 

 

//Add the the Arraylist Collection to a Session

Session[

"Cycles"] = array;

}

}

 

}

When i select multiple it brings me only the last value i selected.

How can i do this

Thank you