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
295
Disable Group Header Click in Ultrawingrid
posted

I'm using this below code, how can I disable user clicking on Group Header Caption. I want disable click functionality on Group Header Caption. 

Dim group1 As UltraGridGroup = e.Layout.Bands(0).Groups.Add("group1")
group1.Header.Caption = "Header 1"
group1.Header.Appearance.TextHAlign = HAlign.Center

Parents
  • 469350
    Verified Answer
    Offline posted

    Hi Vijay,

    When you say "disable click functionality on Group Header Caption", I assume you mean you don't want clicking on the group header to select the columns in that group. Is that correct?

    There's no way to disable just that functionality, but you could change the HeaderClickAction and / or SelectTypeCol properties to control what happens when the header is clicked. This will also affect what happens when the column headers are clicked, though. So what you do here depends a lot on what you want to happen when the user clicks a column header. Do you want the user to be able to select a column? Do they need to select more than one column? Do you want clicking the column header to sort the data, instead?

Reply Children
No Data