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
715
SelectedCellsCollection - WinGrid
posted
Dear All, I'm using wingrid in my application, after selecting cells in the grid i want to set value to those cells. i try the SelectedCellsCollection but it give index outof bound exception. my code is int cellCount = mygrid.Selected.Cells.Count; for(int cellIndex =0; cellIndex
Parents
No Data
Reply
  • 45049
    posted

    You're likely mixing up the concept of an "active" row (which contains the cell that has input focus - the grid either has no active row or one active row) with a "selected" row (the grid may have no, one, or many active rows, depending on configuration).

    Try looking at the grid's ActiveRow property, and if this is not null, look at its Cells collection for the individual cell you want to manipulate.

Children
No Data