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
305
problem with subitems
posted

Hi i try to create a listview but i have some problems.

 

                foreach (ICity c in cities)

                {

                    UltraListViewItem item = this.list_LocationAvalible.Items.Add(((IDomainObject)c).Id.DatabaseId.ToString(), c.Name);

                    item.SubItems["Country"].Value = c.Country;                   

                }

but the main column size it' s wrong,how can i fix that (attached picture)?

How can i insert subitems? it's not correct this method?why?

 

Many thanks

 

  • 565
    posted

    hi,

    Is View property is 'Details'? if so Set the property 'AutoFitColumns' under ViewSettingDeails to ResizeAllColumns and check.