What's wrong?

Source: Internet
Author: User
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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.