[Original] Full DataGrid filling data in the ASP.NET environment

xiaoxiao2021-03-06  39

#Region statement // --------------------------------------------- ------------------------- after //// datagrid populated with data interface dynamic color display //// author: Li Miao (Nick.Lee) /// The complete DataGrid fill data after the ASP.NET environment, Dynamic Display Fill Scheme //// DataGrid interface dynamically display //// Boyorgril@msn.com////-------- -------------------------------------------------- ------------ # endregionusing system;

#Region Quote Namespace Using System.Web.ui; Using System.Web.ui.WebControls; #ENDREGON

Namespace nicklee.web.ui {///

/// DataGrid expansion /// public class webgridfill {public webgridfill () {// // Todo: Add Construction Function Logic here //}

#REGON DATAGRID Interface Dynamic Display Function ///

/// Interface Displays the expansion function, set the color, please set the single line color in DataGrid, AlternatingItemStyle.backColor Set two-way color /// / // Need to pass the DataGrid name /// The color of the mouse to the current line /// Mouse Click color public void interfaceExtend (System.Web.ui.WebControls.DataGrid Sender, String MouseoverColor, String Clickcolor) {

IF (sender.ItemStyle.backcolor.name == "0") {// condition determination if (sender.alternatingItemStyle.backColor.name == "0") {// Condition judge for (int i = 0; i

} Else {for (int i = 0; i

} Else {for (INT i = 0; i

}

转载请注明原文地址:https://www.9cbs.com/read-59426.html

New Post(0)