Beispiel #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;
     }
 }
Beispiel #2
0
 private void OnRowDataBound(Row row, TItem dataItem)
 {
     if (RowDataBound != null)
     {
         DataSourceConverterEventArgs args = new DataSourceConverterEventArgs(row, dataItem);
         RowDataBound(this, args);
     }
 }
Beispiel #3
0
 private void OnHeaderRow(Row row)
 {
     if (HeaderDataBound != null)
     {
         DataSourceConverterEventArgs args = new DataSourceConverterEventArgs(row);
         HeaderDataBound(this, args);
     }
 }