Divelements Community
Customer discussion of all Divelements products

Not able to get multiple row selections

Latest post 09-26-2008 17:40 by dealsboy. 0 replies.
  • 09-26-2008 17:40

    Not able to get multiple row selections

    Hi

    I have the following code. I am only getting the latest selected row (always 1) not all the selected rows.  I did not turn off multiple selection.  By the way I am using evaluation verison. Please let me know what do I have to do to get all the selected rows.

     

     adminForm.KGrid.SelectionGranularity = SelectionGranularity.Row;

                foreach (GridRow row in adminForm.KioskGrid.SelectedElements)

                {

                    var kRow = row.NestedRows;

     

                    foreach (GridRow cell in kRow)

                    {

                        statusList.Add(new Key

                        {

                            KeyId = cell.Cells[0].Text,

                            Status = Convert.ToString(cell.Cells[1].GetValue())

                        });

                    }

                }

     

    Thanks

    dealsBoy

     

Page 1 of 1 (1 items) | RSS
Copyright © 2008 Divelements Limited
Powered by Community Server (Commercial Edition), by Telligent Systems