Home Forums WinForms controls Xceed Grid for WinForms Problem with Groups title

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • User (Old forums)
    Member
    Post count: 23064
    #13178 |

    I have a grid with my customers grouped by country. How can i show for example “There are 17 custromers from Italy” instead of “Country : Italy – 17 item(s)”? There are some string replacement wich I can use (ex.:”There are %n customers from %g”)?
    In other words can i customize the title of a group?
    thank you

    Imported from legacy forums. Posted by agemini (had 3498 views)

    User (Old forums)
    Member
    Post count: 23064

    <a href=”http://doc.xceedsoft.com/products/gridNet/ref/xceed.grid.groupmanagerrow.titleformat.html”>Clicky</a&gt;.

    Imported from legacy forums. Posted by Tommy (had 166 views)

    User (Old forums)
    Member
    Post count: 23064

    thanks, but how can I do it automatically when in the grid a new group is created? how can i retrive the groupManagerRow from a group?
    thanks a lot

    Imported from legacy forums. Posted by agemini (had 279 views)

    User (Old forums)
    Member
    Post count: 23064

    To retrieve the groupManagerRow from a group and set the TitleFormat:
    if (group.HeaderRows.Count > 0)
    {
    Xceed.Grid.GroupManagerRow row = group.HeaderRows[0] as Xceed.Grid.GroupManagerRow;
    if (row != null) row.TitleFormat = “….”;
    }

    Imported from legacy forums. Posted by Tommy (had 235 views)

    User (Old forums)
    Member
    Post count: 23064

    Thanks
    😉

    Imported from legacy forums. Posted by agemini (had 4568 views)

Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.