Question

Could someone please tell me if there is a simple way (e.g. boolean property to set) to get the Infragistics WPF XamDataGrid to show the row number?

I found something in the feature browser, but that seems to be for the XamGrid. We use the WPFv3 11.2 libraries.

Some quick Googling seems to indicate that the feature isn't supported, but the latest post seems to be in 2011.

Was it helpful?

Solution

In the current version of the NetAdvantage Suite (2011 vol. 2), there isn't a property that can be used to accomplish your requirement.
A solution exist that create a specific class implementing the IMultiValueConverter interface as explained in this thread on the Infragistic Support Forum.
You could submit your requirement to the Infragistics Dev Team using the Feature Request link on that page, as other reviewers have already done.

(thanks @alhalama)

OTHER TIPS

I know this is kind of late, but in case, you still haven't found a solution:

  • In the base class which form the objects inside the binding list, create a property for the column which will display the row number
  • Create another property of Visibility type inside your view model, which will be used to show/hide the row number column
  • Create a static resource for the view model inside your view
  • Bind the visibility property of the row number column to the Visibility property created inside the vm file

You should be set.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top