Hi,
derive your own columnstyles, and override the paint method to implement row based formatting:
protected override void Paint( Graphics g, Rectangle bounds, CurrencyManager source, int rowNum, bool alignToRight )
{
// Paint the column values
// get the current cell value from the data source
object value = this.GetColumnValueAtRow( source, rowNum );
// and format it
string text;
if ( value == null || value == DBNull.Value ) text = this.NullText;
else text = value.ToString();
// clear the cell backgound
Brush bgBrush = new SolidBrush( this.DataGridTableStyle.BackColor );
Brush fgBrush= new SolidBrush( this.DataGridTableStyle.ForeColor );
g.FillRectangle( bgBrush, bounds );
// and paint the value in the reduced bounds
g.DrawString( text, this.DataGridTableStyle.DataGrid.Font, fgBrush, bounds );
}
Take it as a starter....
HTH,
ulli