I have a DataGrid control for which I have also created several new extended
DataGridColumnS tyles. They behave pretty nicely, but I can't figure out how
to implement Selected Item formatting for them.
In a plain vanilla DataGrid, when you click on the RowHeader, the
appropriate row changes colors. I ASSUME this should be done in the Paint
(or PaintText) override of the DataGridColumnS tyle in question. My problem
is that I don't know how to retrieve the DataGrid of the DataGridColumnS tyle
instance to test if the row is selected.
Or, maybe this isn't the best way to do this. Any help?
Thanks,
--
Pat
DataGridColumnS tyles. They behave pretty nicely, but I can't figure out how
to implement Selected Item formatting for them.
In a plain vanilla DataGrid, when you click on the RowHeader, the
appropriate row changes colors. I ASSUME this should be done in the Paint
(or PaintText) override of the DataGridColumnS tyle in question. My problem
is that I don't know how to retrieve the DataGrid of the DataGridColumnS tyle
instance to test if the row is selected.
Or, maybe this isn't the best way to do this. Any help?
Thanks,
--
Pat
Comment