0
Answer

SelectedIndexChanged Event for DataGrid .. help

Ask a question
Administrator

Administrator

21y
1.8k
1
All Kind of new to this programming and forum. I have struggled a tad with the datagrid WebControl and felt it was more than worth it. However my problem right now is that I would like to be able to simply highlight a row that a user clicks on .. via the SelectedIndexChanged Event defined by the wizard as follows: this.DataGrid1.SelectedIndexChanged += new System.EventHandler(this.DataGrid1_SelectedIndexChanged); However it would seem this event NEVER fires for the Grid!!! I have a ridiculously simple handler that I simply want to "show me" that it is being called, as follows: private void DataGrid1_SelectedIndexChanged(object sender,System.EventArgs e) { DataGrid1.SelectedIndex = 0; TextOut.Text = "heloooooooooooooooo"; } Again the event and the handler NEVER get called. What am I doing wrong? I loooked through all the properties of my grid and nothing strikes me as obvious??? Any and all help cherfully accepted.