Hi All,
I am working in ASP.Net & c# project.
I have one Gridview which contains the Dropdownlist as one of its column and I have other text fields on the page which are like Master-Child relation.
I am binding data to gridview from code-behind cs file.
On row selection of the grid - the data should be filled in other fields on the page. For this purpose, i m adding one JavaScript function on gridview_rowdatabound event and passing those values in the function so that when row is selected - that function is called and other text fields are filled with corresponding data.
But at the same time, i have one text box which should be filled on selection of dropdownlist and for that i am calling client side function onchange of dropdownlist.
Now I m facing issue in this scenario:
Suppose i have txtDate, DropDwonName,GridRowSelected
1. when row is selected -GridRowSelected
function is called and fields including 'txtDate' are filled as per database values
2. when i select value from dropdownlist - it calls its onchange method and set the value of 'txtDate' field.
but at the same time,GridRowSelected function is also getting called which overlaps the value in 'txtDate' field(when its auto filled on selection of dropdown).
Can anyone help me in this case? Its very urgent.
Thanks & Regards,
anu