Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
1265
Combo.Rows.Count calls InitializeRow
posted

Is there a way to get the combo's row count without it calling InitializeRow?

Thanks,
~Kelly

Parents
  • 469350
    Suggested Answer
    Offline posted

    Hi Kelly,

    Probably not. The combo fires InitializeRow when the rows are created. My guess is that this happens lazily, so it will normally occur the first time you drop it down or try to reference a row in code. Calling the count has to access the rows collection, which causes the rows to get created.

    Why do you care if InitializeRow fires or not?

     

Reply Children