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.

enter image description here

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

Popular posts from this blog

ios - iPhone/iPad different view orientations in different views , and apple approval process -

java Extracting Zip file -

C# WinForm - loading screen -