In the lesson on working with
was detailed mapping table data from a SQL database. But with the question from one of the readers, do a small addition to this example.
The question was how to paint an entire row depending on the value in one of the columns. In the example of operation performed with the addition of
data base rows with the date, time, and a pseudo-random number notification of the pseudo-random number. In this regard, the lines were selected as test lines, where the pseudo-random number is equal to 41.
To do this, you must inherit from
class and override the method
. Then use as a data model, a new class of heir.