Hello again guys:
Refer to the code (zipped file) you provided in http://es.infragistics.com/community/forums/t/93426.aspx
How can I set the background color of the entire selected row (On left mouse click) ?
I'm not sure, but I think in MainView.xaml the trouble seems to be in Binding Record.IsSelected: It can't resolve Record.
Thx
Hi nar,
We do have a team in the NJ office that handles support issues (I'm one of them ;) ). I've signed up to go to that user group so maybe I'll see you there!
Fantastic! I'll do that. Thx!
Hello,
If you are interested, you could go to the Central New Jersey .NET User Group meetings that happen at the Infragistics headquarters on the second Thursday of the month. You can join the group and rsvp for meetings on www.meetup.com/njdotnet.
This is what I suspected about CellValuePresenter and DataRecordCellArea! I have been using Snoop (very powerful tool). I'll read up on the docs you provided.
Thanks again!
Personal note: I live a few miles from the Infragistics headquarters, I've been tempted to pop in with pizza+beer! But I doubt support works out of central nj ;)
CellValuePresenter is the UI Control that represents a Cell in the XamDataGrid. DataRecordCellArea is the UI Control that contains all of the CellValuePresenters for a particular row. In the sample you referenced, it is setting the background of all the cells in a single row when that row is selected. That is what is determining the row's background color. In certain cases, DataRecordCellArea will need to be used in order to set things like the color of the background for the whole row when the row is active.
For more information on styling the XamDataGrid please see the following: http://help.infragistics.com/doc/WPF/2014.2/CLR4.0/?page=WPF_Working_with_xamDataGrid_xamDataCarousel_and_xamDataPresenter_Styling_Points.html
I also recommend that you download this tool as it helps immensely in determining what properties you need to use to change certain things. It also helps to look at the API docs for CellValuePresenter and DataRecordCellArea. Reading through the property names to see if there are properties to set certain background colors makes it easier to know which control you need to create a style for. http://help.infragistics.com/doc/WPF/2014.2/CLR4.0/?page=InfragisticsWPF4.DataPresenter.v14.2~Infragistics.Windows.DataPresenter.CellValuePresenter_members.html
http://help.infragistics.com/doc/WPF/2014.2/CLR4.0/?page=InfragisticsWPF4.DataPresenter.v14.2~Infragistics.Windows.DataPresenter.DataRecordCellArea_members.html