Aspose.Cells.GridWeb.Examples.CSharp.GridWebBasics.ApplyCustomPresetStyle.btnApplyCustomStyle_Click C# (CSharp) Метод

btnApplyCustomStyle_Click() защищенный Метод

protected btnApplyCustomStyle_Click ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
Результат void
        protected void btnApplyCustomStyle_Click(object sender, EventArgs e)
        {
            // ExStart:LoadCustomStyle
            // Setting the PresetStyle of the control to Custom
            GridWeb1.PresetStyle = PresetStyle.Custom;

            // Setting the path of style file to load style information from this file to the control
            GridWeb1.CustomStyleFileName = (this.Master as Site).GetDataDir() + "\\GridWebBasics\\CustomStyle1.xml";
            // ExEnd:LoadCustomStyle
        }
    }