Row no in columns[0] - TDBAdvGrid

I need to get column with Row number to identify a number of elements in table
No                                name              
1                                  'dog'
How to do this and where should i put a code.
I`ve tried something like this but without any effects:
for i := 1 to dbg_wag.RowCount - 1 do
        dbg_wag.Cells[0,i] := IntToStr(i-1);
Maybe i should insert this into some event.
Plz help

If you want to access all rows in the dataset via the grid.Cells[] property, please set grid.PageMode = false.

I was talking about dbgadv.AutoNumberCol(0);property - just in case someone need it.