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
314
Disable sorting for particular column
posted

 Is there a way to disable the sorting for only one column?

I am binding the webgrid to an objectdatasource. I added manually a checkbox column at the begining. I don't want to enable sorting for this column.

Any suggestions will be appreciated.

Thanks in advance 

Parents
  • 356
    Verified Answer
    posted

    Hello,

    You can use something like this: 

    protected void UltraWebGrid1_InitializeLayout(object sender, Infragistics.WebUI.UltraWebGrid.LayoutEventArgs e)
    {
        UltraWebGrid1.Bands[0].Columns.FromKey("ColumnName").SortIndicator = Infragistics.WebUI.UltraWebGrid.SortIndicator.Disabled;

     

    Hope it helps

    Johni Ecco 

Reply Children
No Data