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

    Just wondering is there any way to change the text displayed in the group..i mean the title of the groupbyrow..
    Dim groupManagerRow As groupManagerRow = New groupManagerRow
    groupManagerRow.TitleFormat = “Areas under [%GROUPKEY%]”

    I have combobox tied to the column to which i am grouping..when the user groups by that column the title says ‘Area under [1]’
    I would like to change the title to display the displaymember rather than the value member

    something like ‘Areas under [North]’

    Whatz the easiest way of doing this..

    Cheers,

    Imported from legacy forums. Posted by Sharad (had 2847 views)

    User (Old forums)
    Member
    Post count: 23064

    Sorry guys, i messed up the subject line ….is there any way to delete and re-enter 😀

    Imported from legacy forums. Posted by Sharad (had 252 views)

    User (Old forums)
    Member
    Post count: 23064

    I spent some time investing and looking at the documentation and finally managed to sort it out myself..will put the code just for later references..

    AddHandler gcZones.QueryGroupKeys, AddressOf QueryGroupKeys

    Private Sub QueryGroupKeys(ByVal sender As Object, ByVal e As QueryGroupKeysEventArgs)

    Try
    Dim grd As Xceed.Grid.Editors.GridComboBox = e.DataRow.Cells(“ZoneID”).CellEditor
    Dim countryValue As String = grd.Text
    e.GroupKeys(0) = countryValue.ToLower

    Catch exception As exception
    MessageBox.Show(exception.ToString())
    End Try
    End Sub

    Its so easy to get lost in the world of EVENTS (h)

    Imported from legacy forums. Posted by Sharad (had 3944 views)

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