asp.net - How to shift the column header in GridView -
i want shift column header " subject no" right. there should no header in checkbox column.

the code getting checkboxes ;
protected void gridview1_databound(object sender, eventargs e) { foreach (gridviewrow objrow in gridview1.rows) { tablecell tccheckcell = new tablecell(); checkbox chkcheckbox = new checkbox(); tccheckcell.controls.add(chkcheckbox); objrow.cells.addat(0, tccheckcell); } } i used datatable data gridview.
how shift colum header right??
thanks.
you doing in wrong way, notice have header column missing @ right.
instead of doing doing now, try add new column @ left , have no header text it, in itemtemplate of first column insert checkbox, should trick without messing around final generated table , in simpler way.
Comments
Post a Comment