Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Remove first column (#) of Yii2 GridView

Tags:

yii2

Does someone know how to remove the first column (<th>#</th>) of a Yii2 GridView? Probably a simple question, but I can't find an answer anywhere.

like image 792
JK87 Avatar asked Oct 15 '15 08:10

JK87


People also ask

How do I remove the first character from a column in Excel?

Applying Flash Fill to Remove First Character using a SHORTCUT KEY 1 First of all, in the cell A1 enter the first text by skipping the first character from the original text. 2 After that, hit enter and come down to the second cell in the column. 3 Now, press the keyboard shortcut Control + E to apply a flash fill to apply.

How do I remove the first character from the student ID?

You can use the RIGHT function and the LEN function of Excel to remove the first character from the Student IDs. Select a new column and insert this formula in the first column:

How to delete a column from a Dataframe in Python?

The first point is that the column we want to delete is to be given in the columns parameter of the drop () method. The second point is that we have to assign axis value 1 if we want to work with columns. Inplace is used if we want to make changes in the existing dataframe.

How to delete the first character from the field in MySQL?

Below is the syntax for the SUBSTRING () function to delete the first character from the field. SELECT SUBSTRING (column_name,2,length (column_name)) FROM table_name; To delete the first character from the FIRSTNAME column from the geeks for geeks table. We use the given below query:


1 Answers

Remove ['class' => 'yii\grid\SerialColumn'], from columns => [ ... ] of GridView.

like image 183
Double H Avatar answered Oct 13 '22 16:10

Double H