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