How to edit subitems via code?

3 posts, 0 answers
  1. Peter
    Peter avatar
    1 posts
    Member since:
    May 2012

    Posted 21 May 2012 Link to this post


    How can i edit subitems via code?

    I tried something like:

    RadListView1.SelectedItem.SubItems(3).Text = "Test"

    Like it works on a normal Listview, but RadListView doesn't have the parameter 'Text'.
    So how can i change the text of the subitem from the selected item ?

  2. Stefan
    Stefan avatar
    2891 posts

    Posted 23 May 2012 Link to this post

    Hello Peter,

    Thank you for writing.

    There are couple of overloads that allow you to assign/modify the column values for an item:
    - by using the column index
    - by using the column name
    - by using a column reference

    All three are demonstrates in the "Populating cells" section of this help article: 

    I hope this helps.

    the Telerik team
    RadControls for WinForms Q1'12 release is now live! Check out what's new or download a free trial >>
  3. DevCraft R3 2016 release webinar banner
  4. jasmeet
    jasmeet avatar
    1 posts
    Member since:
    Jul 2015

    Posted 27 Jul 2015 in reply to Peter Link to this post

    Hi Peter,

    you can do like this


    this will work for you.



Back to Top