Login ProductsSalesSupportDownloadsAbout |
Home » Technical Support » Elevate Web Builder Technical Support » Support Forums » Search Forums » Search Results » View Thread |
Messages 1 to 4 of 4 total |
list index on grid out of bounds? |
Fri, Nov 24 2017 7:59 AM | Permanent Link |
kamran | Hi Just trying to get the contents of a row on a grid. I get list index out of bounds when using: "OrderGrid.Rows[RowIndex][ColumnIndex] " e.g. showmessage(OrderGrid.Rows[5][1]); The row 5 and column 1 are there for sure as I can see them in my grid ? Have I missed something or am I using the wrong technique to extract this value ? Thanks Kamran |
Fri, Nov 24 2017 8:20 AM | Permanent Link |
Matthew Jones | kamran wrote: > I get list index out of bounds when using: > > "OrderGrid.Rows[RowIndex][ColumnIndex] " > > e.g. > > showmessage(OrderGrid.Rows[5][1]); > > The row 5 and column 1 are there for sure as I can see them in my grid ? > > Have I missed something or am I using the wrong technique to extract this value ? Nothing I can see wrong - are you counting them zero-based indexes? Is the data coming from a dataset or is it unbound? Maybe a bound grid needs to be accessed from the dataset? -- Matthew Jones |
Fri, Nov 24 2017 8:34 AM | Permanent Link |
kamran | Hi Matthew Yes .. It's a grid previously populated by a grid from an edb table. So my point is if its in the grid surely its in memory and therefore accessible ? Thanks Kamran "Matthew Jones" wrote: kamran wrote: > I get list index out of bounds when using: > > "OrderGrid.Rows[RowIndex][ColumnIndex] " > > e.g. > > showmessage(OrderGrid.Rows[5][1]); > > The row 5 and column 1 are there for sure as I can see them in my grid ? > > Have I missed something or am I using the wrong technique to extract this value ? Nothing I can see wrong - are you counting them zero-based indexes? Is the data coming from a dataset or is it unbound? Maybe a bound grid needs to be accessed from the dataset? -- Matthew Jones |
Fri, Nov 24 2017 1:43 PM | Permanent Link |
Tim Young [Elevate Software] Elevate Software, Inc. timyoung@elevatesoft.com | Kamran, << So my point is if its in the grid surely its in memory and therefore accessible ? >> No, not correct. There are bound grids and un-bound grids, and one cannot be used like the other. If the grid is bound, then you cannot reference the rows by index. Tim Young Elevate Software www.elevatesoft.com |
This web page was last updated on Monday, December 9, 2024 at 02:00 AM | Privacy PolicySite Map © 2024 Elevate Software, Inc. All Rights Reserved Questions or comments ? E-mail us at info@elevatesoft.com |