asp.net - Place border around multiple cells in a gridview -
so have gridview modify of cells, , treat cells 1 (if possible).
so first changing of cells background color on rowdatabound:
if (e.row.rowindex > 1 && e.row.rowindex < 7) { e.row.cells[1].backcolor = color.red; e.row.cells[2].backcolor = color.red; e.row.cells[3].backcolor = color.red; e.row.cells[4].backcolor = color.red; e.row.cells[5].backcolor = color.red; }
this change 5x5 area of cells red. next put border around outside of 5x5 area. found borderstyle , bordercolor cell, there way me turn on border 1 side of cell can create border?
thanks
i'd advise use classes instead, don't hard-code this. easier maintain etc.
Comments
Post a Comment