Hi,
I have a wingrid which is databound to a datacontract class. We hide the activeFlag column, and instead show a status column, which is a button. I can sort on any column in the grid as per default behavior, however the action column doesn't show the sort indicator. What setting am I missing?
Thanks.
Below is the code used to create the custom column:
Private Sub ActionColumnCreate() _statusColumnCaption = "Status" _grid.DisplayLayout.Bands(0).Columns.Add(STATUS_COLUMN_ID, _statusColumnCaption) _grid.DisplayLayout.Bands(0).Columns(STATUS_COLUMN_ID).Style = Infragistics.Win.UltraWinGrid.ColumnStyle.Button _grid.DisplayLayout.Bands(0).Columns(STATUS_COLUMN_ID).ButtonDisplayStyle = Infragistics.Win.UltraWinGrid.ButtonDisplayStyle.Always _grid.DisplayLayout.Bands(0).Columns(STATUS_COLUMN_ID).CellButtonAppearance.Image = Global.Common.CompanyName.Library.Image.My.Resources.NewRecordIcon_32 _grid.DisplayLayout.Bands(0).Columns(STATUS_COLUMN_ID).CellButtonAppearance.FontData.Underline = Infragistics.Win.DefaultableBoolean.True _grid.DisplayLayout.Bands(0).Columns(STATUS_COLUMN_ID).CellButtonAppearance.ImageHAlign = Infragistics.Win.HAlign.Center End Sub
I don't see anything in this code that turns on the Sort Indicators for any column. Are you setting the HeaderClickAction on each column or on the band as a whole or on the grid's DisplayLayout?
I can't see any reason why any of the properties you have set here would cause the header not to show the sort indicator - assuming you are actually clicking on the column header. The indicator doesn't show up unless the column is actually being sorted, of course.
Strange. I was wondering if there was an extra setting or something. The rest of the columns are bound through databinding and when I sort on the column, the indicator shows up properly. It's only this column, which sorts no problem, however doesn't show an indicator. I figured I was missing something when I set up the column.
Thanks for the quick response.