Good Morning Manu
it not a Good idea to get the value without Looping, What if a user did a multiselect on the Grid. You have to loop on the Gridview and get the select value of the Cells, i have an example that i used in a Ultragridweb
foreach (UltraGridCell cell in ultraGridCycles.DisplayLayout.SelectedCells)
{
if (cell.Value != null && cell.Value.ToString() != "")
{
cell.Style.ForeColor = System.Drawing.Color.Red;
array.Add(cell.Value);
Session["Cycles"] = array;
}
}
Basucally what i did here i have added the select cells values to a Arraylist and and put them in a Session, you can choose to put the in a session and pass them to a parameterised Method that will call your sp in your DAL
Thank you for Posting in DOTNETFUNDA
We are looking forward for your Reply
Vuyiswa Maseko
Thank you for posting at Dotnetfunda
[Administrator]
Manu, if this helps please login to Mark As Answer. |
Reply | Alert Moderator