datagrid| dynamic DataGrid apply a style file to define a dynamic style
HBZXF (ah Good)
Http://www.cnblogs.com/hbzxf
In the ASP.net development process, the DataGrid used a very high frequency, for the style of the DataGrid is commonly used by custom different colors to apply to the header of the DataGrid, Footer, EditItem, SelectItem , Item, page, however, if the above style should be set on each page, the efficiency can be imagined, not a few pages a day, And one of the biggest bugs in vs.net is that when we rearrange the page layout for a well-defined DataGrid, we find that all of its events are somehow lost. Maybe sometimes we just have to use the Vs.net format template that we've already provided, but sometimes we have to, and do not let us use the form template how to do (such as customer requirements), I will explain the application of the style file in the DataGrid to define the dynamic style, so that when the customer is not satisfied with a set of color package, It can take a few minutes to redefine a set of things that are more efficient. Cut the crap and see how the following css.css files are defined.
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.