c# - How to remove vertical lines in an asp.net gridview -


i working on asp.net c# webforms gridview. gridview created entirely code behind , populated. have add 4 buttons @ footer of control. wondering whether there way remove horizontal lines footer make entire footer single cell? adding buttons in footer shown below.

if (e.row.rowtype == datacontrolrowtype.footer) {    e.row.cells[1].controls.add(mybutton); } 

this adds buttons within cell. have footer without vertical lines , 4 buttons close each other , @ center.

thanks

you can apply colspan gridview row in onrowdatabound event.

if (e.row.rowtype == datacontrolrowtype.datarow) {     //span first cell 3 columns     e.row.cells[0].columnspan = 3;      //remove next cell twice     e.row.cells.removeat(1);     e.row.cells.removeat(1); } 

not sure horizontal lines, css, impossible sure without more info.


Comments