There has been no log for a long time and no questions have been asked on csdn.
The day before yesterday happened a very strange thing, ran to csdn asked a question, http://community.csdn.net/Expert/topic/3639/3639599.xml? Temp =. 0821802.
The second question was quite strange, and the reply was unexpectedly as simple as I expected.
This is probably the tablestyle of the DataGrid. I want several grids to share some display styles, because they ignore tablestyle and column settings (not very familiar with this, so I want to directly add the tablestyle instances of the two grids to the same tablestyle instance. The result is as follows: Wrong, one instance can only be used once, so I naturally think of clone, so I find clone, no ...... I asked the question, and the answer to the result was far from what I imagined. The man told me to write a method. every call, an instance is returned, set the value of the display style (color, Font, etc.) of the returned instance in the method.
Surprised, I would have used the same method as this old brother (a year ago), but why did I come up with another method after a year? In the end, I inherited tablestyle and implemented icloneable, regardless of whether it is correct. Anyway, it works.
Maybe this is growth? I don't know. Maybe I won't be so confused in a while. Every step in my memory is like this. Let's make comments.