C1List.C1Combo EmptyRows = True not working?

Posted by: softcomlimited on 25 September 2019, 10:31 am EST

    • Post Options:
    • Link

    Posted 25 September 2019, 10:31 am EST

    Hello I am using v4.0.20151.38 and trying C1List.C1Combo.EmptyRows = True .MaxDropDownItems = 10 .ComboStyle = C1.Win.C1List.ComboStyleEnum.DropdownCombo But when there is say only 1 item, the dropdown list is exactly 1 row tall. I want the dropdown list to be always 10 rows tall with the space at the bottom. Am I missing something ? Thanks Brian

  • Posted 25 September 2019, 11:08 am EST

    Also, I have a date column with .Columns(“Posted”).NumberFormat = “yyyy-MM-dd hh:mmtt” but if the value is NULL it shows as 0001-01-01 12:00 Is there a way to leave the column blank? I tried a ValueItem with .Value=“” and .DisplayValue = “” but that did not work. Is there a way to do something like NullText ? Thanks Brian

  • Posted 26 September 2019, 8:03 pm EST

    Hello,​ ​ 1 : We are investigating on this, we will let you know once it is done.​ ​ 2 : Sorry but we can not replicate the issue at our end while leaving the column blank. ​ Please modify the attached sample or provide your stripped down sample replicating the issue so that we can narrow down the problem and help you in a better way.​ ​ Regards,​ Prabhat Sharma.​ C1ComboMaxItemDemo.zip

  • Posted 26 September 2019, 11:06 pm EST

    Mr Sharma,

    1. I will have a look at the demo.
    2. Just to clarify, it is not that I am leaving the column blank, it is that the underlying data for the date is a NULL and I want the column to display as blank rather than 0001-01-01 12:00 Thanks a lot Brian
  • Posted 27 September 2019, 1:12 am EST

    Mr Sharma, On the demo the list is only 4 rows high even though the MaxDropDownItems=10 and EmptyRows=true. Yes the demo null values are showing as blanks. The only difference to me is that you use the datasource as a DataTable where I have a List. I will look more closely at this. Thanks Brian

  • Posted 27 September 2019, 1:47 am EST

    Mr Sharma, My datatype in my List was the problem, I had Date instead of Date? so the Nothing value was being kept as 0001-01-01 12:00 and obviously the combo displayed that. Thank you very much Brian

  • Posted 29 September 2019, 3:49 pm EST


    It is good to hear that the problem has been resolved at you end.

    >>On the demo the list is only 4 rows high even though the MaxDropDownItems=10 and EmptyRows=true. We have escalated this to the developers , will let you know once we get any updates regarding this. [Internal Tracking Id : 399921]

    Regards, Prabhat Sharma.

  • Posted 30 September 2019, 12:55 am EST

    Oh, ok, the EmptyRows problem is a bug then? Probably won’t get fixed for my 2015 version then. Regards Brian

  • Posted 17 October 2019, 10:15 am EST

    Mr Sharma any update on the MaxDropDownItems=10 and EmptyRows=true. ? Regards Brian

  • Posted 17 October 2019, 2:41 pm EST

    Hello Brian,

    Sorry for the inconvenience. Developers are working on this issue, although we have again asked them for update. We will let you know once we get any update from their end.

    Regards, Prabhat Sharma

  • Posted 25 April 2023, 3:52 pm EST


    Apologies for the delay in response.

    This issue has been fixed back in 2021 builds and Empty rows are shown in Combo dropdown as per MaxDropDownItems when EmptyRows is set True

    Please update your project with the latest builds to resolve this issue.


    Prabhat Sharma.

  • Posted 26 April 2023, 1:10 am EST

    Mr Sharma,

    Lol. Better late than never. Only this week did I complete upgrade from v2015 for v2023 and I saw that it was indeed fixed.



Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels