question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

getCellContent called for cells out of range of the rows prop

See original GitHub issue

I’m seeing some issues with getCellContent being called with a row index greater than or equal to the rows prop passed in. This happens only occasionally, often at points when the rows change size significantly such as bulk deletions or additions, and the user is hovering over the grid. It’s not easily replicable right now but I will try and get a screen recording and some evidence. Just wondering if this has been reported before or is known about?

I have a temporary fix in place to return an uneditable text cell from getCellContent if the row index >= rows.

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
jassmithcommented, Nov 15, 2022

In the experimental flags there is a mode called “strict” which will prevent this. Unfortunately, it will also sometimes trigger flashing. I am still working out why.

<DataEditor experimental={{strict: true}} />

1reaction
jassmithcommented, Nov 9, 2022

Thank you I will get to this ASAP

Read more comments on GitHub >

github_iconTop Results From Across the Web

DataGridColumn.GetCellContent Method - Microsoft Learn
GetCellContent (Object). Gets the Content property value for the cell at the intersection of this column and the row that represents the specified...
Read more >
Get data of specific cell from selected row in DataGrid WPF C# ...
Index was out of range. Must be non-negative and less than the size of the collection. Parameter name: index ... because you were...
Read more >
glide-data-grid/API.md at main - GitHub
The number of rows in the data-grid. getCellContent, A callback to get the content of a given cell location. Important Props. Most data...
Read more >
VBA Ranges - Getting and Setting Cell Values
To get a cell's value in VBA, we need to refer to it with the Range object and then call the .Value property....
Read more >
VBA Cell Value - Get, Set, or Change - Automate Excel
Excel VBA – Named Ranges and Programming ... VBA – Get the Active Cell's Column or Row ... VBA – Turn Automatic Calculations...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found