In histology, CD20 is detected using immunohistochemistry (IHC) techniques. Specific antibodies against CD20 are used to stain tissue sections. When these antibodies bind to CD20 on the B-cells, they can be visualized using various detection systems, often resulting in a brown or red color. This helps pathologists identify B-cell lymphomas and other B-cell related disorders.