c# - Hiding columns but not page number in grid view asp.net -


i working on grid view. using allow paging method working fine , positioned right of grid view.

i want hide first column working fine except removing paging numbers stops user being able change page numbers.

below code using hide column

protected void tbllog_rowcreated(object sender, gridviewroweventargs e) {     e.row.cells[0].visible = false; } 

the above code hides correct column hides automatic page numbers created grid view allowpaging method.

thanks can provide.

check first see if it's data row:

if (e.row.rowtype == datacontrolrowtype.datarow) {     e.row.cells[0].visible = false; } 

Comments

Popular posts from this blog

How can I edit my VIM config so that Vim treats ".ejs" files the same as it currently treats my html files? -

Python __call__ special method practical example -