Actually, I did a few tests in which I prompted the de->GetLineCount() and it ALWAYS returns 1, for every DocEdit, be it in an ArrayCtrl or not! Isnīt TextCtrl::GetLineCount() supposed to return the current number of text lines in the TextCtrl?
Well, it can be a little bit confusing, but it actually returns a number of paragraphs. But then, this is the main difference between DocEdit and LineEdit - DocEdit treats lines (defines as something that ends with '\n'), LineEdit as lines (does not do wordwrap).