getCellContent called for cells out of range of the rows prop
See original GitHub issueI’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:
- Created a year ago
- Comments:5 (3 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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}} />
Thank you I will get to this ASAP