473,379 Members | 1,170 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,379 software developers and data experts.

Issue with dropdownlist inside gridView

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 jaavscript 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 fileds are filled with corrosponding 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 databse 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
Jan 5 '12 #1
0 1179

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: Pierrick | last post by:
Hello, I have a question about the possibility of using a DropDownList inside a GridView's column (by using a template column). I would like that each DropDownList's content (i.e. for each row)...
2
by: Dominic | last post by:
Hi guys, I'm not sure if this question belongs to FAQ, but I couldn't find a concrete answer. I created a Datagrid control using ItemTemplate, but it's NOT a in-place editing datagrid. One of...
0
by: keithb | last post by:
With a DropDownList in a GridView Edit Template, how can I set the SelectedIndex property so that the list initializes to the value shown in the Display template? When I set SelectedIndex to -1,...
1
by: mark4asp | last post by:
I moved a page to another web-site and now it's broke! I had 5 pages in their own web-site. These pages have now been moved to another web-site. Everything is fine except that one of the pages,...
0
by: lamolap | last post by:
i have 1 gridview , a dropdownlist inside a gridview and a commandfield of (edit, update and cancel) my gidview looks like this Edit Surname Initials ...
0
by: Eraser | last post by:
Hi to all .NET guru guys... I have a problem in my delete button inside gridview. How to avoid postback on when i select cancel on confirmation message? But postback is okay on Ok confirmation....
0
by: baburk | last post by:
I am having dropdownlist inside gridview. When the dropdownlist selectedindex change an event should fire. What is the event for his. I also want to get the dropdownlist event fired row...
2
by: baburk | last post by:
I have Two DropDownList inside DataGrid or GridView, Now on Change of selection of First DropDownList, I want to fill value in second DropDownList
0
by: minhtran | last post by:
Hi everyone I have a problem when I want to edit the value from nested dropdownlist in Gridview, Please, anyone can help me to solve this problem, a great appreciation from me in advance. here is...
1
by: shahidrasul | last post by:
i want to bind a dropdownlist in gridview every row has a dropdownlist and then have multiple or single values. problem is that i want when user change value from dropdownlist, we want to show...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.