コード例 #1
0
 /// <summary> Override this method to render a custom cell. </summary>
 /// <remarks>
 ///   Use <see cref="GetPostBackClientEvent"/> to render the code that invokes <see cref="OnClick"/>.
 ///   <note type="inheritinfos"> Do not call the base implementation when overriding this method. </note>
 /// </remarks>
 protected virtual void Render(HtmlTextWriter writer, BocCustomCellRenderArguments arguments)
 {
     throw new NotImplementedException(
               string.Format(
                   "{0}: An implementation of 'Render' is required if the 'BocCustomColumnDefinition.Mode' property "
                   + "is set to '{1}' or '{2}'.",
                   GetType().Name,
                   BocCustomColumnDefinitionMode.NoControls,
                   BocCustomColumnDefinitionMode.ControlInEditedRow));
 }
コード例 #2
0
 public void RenderInternal(HtmlTextWriter writer, BocCustomCellRenderArguments arguments)
 {
     InitArguments(arguments);
     Render(writer, arguments);
 }