Ejemplo n.º 1
0
 /// <summary>
 /// Event implementation to bold all the columns in a row.
 /// </summary>
 /// <param name="sender">Event sender.</param>
 /// <param name="args">Event arguments.</param>
 /// <example>
 /// In the following example this event is used to bold all the columns in the header row.
 /// <code>
 /// adapter.HeaderDataBound += new EventHandler&gt;DataSourceConverterEventArgs&lt;(DataTableAdapter.BoldAllCells);
 /// </code>
 /// </example>
 public static void BoldAllCells(object sender, DataSourceConverterEventArgs args)
 {
     for (ushort i = args.Row.MinCellCol; i <= args.Row.MaxCellCol; i++)
     {
         args.Row.CellAtCol(i).Font.Bold = true;
     }
 }
Ejemplo n.º 2
0
 private void OnRowDataBound(Row row, TItem dataItem)
 {
     if (RowDataBound != null)
     {
         DataSourceConverterEventArgs args = new DataSourceConverterEventArgs(row, dataItem);
         RowDataBound(this, args);
     }
 }
Ejemplo n.º 3
0
 private void OnHeaderRow(Row row)
 {
     if (HeaderDataBound != null)
     {
         DataSourceConverterEventArgs args = new DataSourceConverterEventArgs(row);
         HeaderDataBound(this, args);
     }
 }