Question: So for the program I'm writing I have an overview of notes the user created. This I created with `TextBox`es that are generated from database values. I want the user to not be able to enter and change anything in this overview.  

I tried to use `tb.ReadOnly = true;` but this doesn't disable the entering of the textbox.  

After that I tried `tb.Enabled = false;` but this applies a gray out to all the text.

Is there any way to remove this gray out or just make the `TextBox` unchangeable without any visual difference?

Answer: 
Alternative solution:

```
input_data %>%
  mutate(id = as.integer(cut(x_data, breaks = 0:max(x_data)))) %>%
  group_by(id) %>%
  summarize(sum = sum(y_data)) %>%
  mutate(cumsum_ydata = cumsum(sum))

```
We can try

```
library(tidyverse)

input_data |>
           mutate(x_steps = rev(trunc(x_data))) |>
           group_by(x_steps) |> 
           summarise(cum_y_data = sum(y_data)) |>
           mutate(cum_y_data = rev(cum_y_data)) |> 
           mutate(cum_y_data = cumsum(cum_y_data))

```

* output

```
# A tibble: 4 × 2
  x_steps cum_y_data
    <dbl>      <dbl>
1       2      0.550
2       3      2.80 
3       4      5.68 
4       5      7.21 

```