How to get a cell value from datagrid by onClick Event?
Posted on 2006-05-15
Hi, i have a datagrid with many rows and 12 columns (months of year).
Jan Feb .... Dic
John 10 5 7
Greg 9 6 9
Mary 10 4 8
label1.text = "6"
So, i need select the value from Greg in Feb with a click in my datagrid, and i´d like to display the value, in this case is "6" in a label for example, how can i do it?
I tried using e.Item.Attributes.Add("onclick") in Datagrid.ItemCreated but it´s not working.
Could you help me?