Problem with grid component

Robin Dunn
:

Anyway, if you are not overriding your table’s ApepndRows then there is no reason | to call it. Just remove that line.

The problem is I want to add Dinamicaly rows at my grid, and I searcing for an example to override this function in the way do not happen this problem.

If You know ani sits were to find an example I say you very thenks

Angelo

Angelo Ballabio wrote:

Robin Dunn :
> Anyway, if you are not overriding your table's ApepndRows then there is no reason | to call it. Just remove that line.

The problem is I want to add Dinamicaly rows at my grid, and I searcing for an example to override this function in the way do not happen this problem.

If You know ani sits were to find an example I say you very thenks

The only time you really need to override the Table's AppendRows is when you want to support calling the grid's AppendRows method and have the Table update itself at the same time. The Grid's AppendRowss simply passes along to the table's AppendRows method and gives the table a chance to respond to the request.

What is more typically done is to let the table be in charge and simply add to the data structure as needed and then inform the grid about the change by sending a message. See the GridCustTable sample in the demo for one example.

···

--
Robin Dunn
Software Craftsman