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
85
Headerclickaction for just one column?
posted

Hi,

I need to set the headerclickaction to select for all the columns of the grid, except for the first column, which I want to sort it when I click its header...

Is it posible to customize it for each column?

Parents
No Data
Reply
  • 469350
    Verified Answer
    Offline posted

    Hi Julio,

        I don't think there is a HeaderClickAction property on the column. 

        So maybe what you can do is set the HeaderClickAction to Sort on the whole band, then in the BeforeSortChange event, trap to see which column is being sorted. If it's the first column, you do nothing. If it's any other column, you set e.Cancel to true and select the column by adding it to the grid.Selected.Columns collection. 

Children