Add handler to the event:
(Something like this)
protected void CellContent_Click(ObjectSender sender, EventArgs eventArgs)
{
}
To access data you will need to creayte connection object, open it, create command, execute it and process the results.
Some examples can be found here:
Data reader example[
^]