Exemplo n.º 1
0
 /// <summary>
 /// Adding a drawing in the RowHeaders for the changed or inserted rows
 /// based on prefered color with gradient
 /// </summary>
 /// <param name="dataGrid">DataGridView</param>
 /// <param name="preferedColor">Color for inserted and changed rows</param>
 public static void AddDataRowStateDrawingInRowHeaders(this DataGridView dataGrid, Color preferedColor)
 {
     DataGridViewExtenders.AddDataRowStateDrawingInRowHeaders(dataGrid,
                                                              preferedColor,
                                                              preferedColor,
                                                              true);
 }
Exemplo n.º 2
0
 /// <summary>
 /// Adding a drawing in the RowHeaders for the changed or inserted rows
 /// based on yellow colors with gradient
 /// </summary>
 /// <param name="dataGrid">DataGridView</param>
 public static void AddDataRowStateDrawingInRowHeaders(this DataGridView dataGrid)
 {
     DataGridViewExtenders.AddDataRowStateDrawingInRowHeaders(dataGrid,
                                                              Color.FromArgb(0x99, 0xFF, 0xCC, 0x33),
                                                              Color.FromArgb(0x99, 0xFF, 0x66, 0x00),
                                                              true);
 }