grid view row enabled/disabled on row data bound
i have a grid view say list. it has following column
id auto generated
name label
address label
connect LINKBUTTON
id starts from 1, 2,3,4 etc...
when i click "connect" , some work happens in background and and first row is removed from grid view and second row id becomes 1... and so on goes till we are left with any row in grid view.
WHAT i want is... that only that gridview link button connect should be enable whose current id is 1 else all other linkbutton should be disabled(we should not be able to click it)
or we can say, only first row link button should be enabled each time grid view is binded .
i am trying in row data bound event , but error show that lnk_connect doesnot exist in current context(where lnk_connect is id of linkbutton)