Hi all, i am doing a new asp project using visual studio .net (VB.NET), what i have done by this code, i have binded the datagrid to a datareader and then added a columnbutton, this code works very fine but . it seems i cant trap the click event on the button in the column

Can anyone advise me in details how can i track the click button and identify which item in the grid is clicked to open the alternative page.

HERE IS MY CODE






VB Code:
  1. If IsPostBack = False Then
  2.             Dim db As New OleDb.OleDbConnection(dbstring), cmd As New OleDb.OleDbCommand(Session("sql"), db), readx As OleDb.OleDbDataReader
  3.             Dim colx As New ButtonColumn()
  4.             colx.CommandName = "viewcmd"
  5.             colx.ButtonType = ButtonColumnType.PushButton
  6.             colx.Text = "View"
  7.             db.Open()
  8.             readx = cmd.ExecuteReader
  9.             dbgrid1.DataSource = readx
  10.             dbgrid1.Columns.Add(colx)
  11.             dbgrid1.DataBind()
  12.             readx.Close()
  13.             db.Close()
  14.             Exit Sub
  15.         End If

THX in Advance