How we use the events on datagrid

May 25 2004 9:26 AM
Hi fellows, I managed to fill a datagrid with xml-data and a typed dataset. No problem so far. One column in the datagrid is a hyperlinkcolumnname. How can you pass columns when you click the hyperlinkcolumn? with url parameters? Tried the following ----> SenderForm private void dgMessages_ItemDataBound(object sender, System.Web.UI.WebControls.DataGridItemEventArgs e) { string patientnaamp = e.Item.Cells[4].Text; string patientvoornaamp = e.Item.Cells[5].Text; Response.Redirect("Kandidaatpatienten.aspx? patientnaam=patientnaamp&patientvoornaam=patientvoornaamp"); } ----> Parameterreceiving form. private void Page_Load(object sender, System.EventArgs e) { // Put user code to initialize the page here string bestandsnaam = Request.Params.Get("patientvoornaam"); string patientnaam = Request.Params.Get("patientnaam"); } It's for a medical application. Thanx!!!