Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Need help!!

Status
Not open for further replies.

vngpal

Programmer
Jan 14, 2004
35
US
Hello Gurus,
I am new to asp.net. I created a datagrid with a sql statement and i could able to fill the values in the grid properly. Also in the same page I have fel dropdown list like state name and manager name. I am hard coding the drop down list. Also I have a button called go.
Once the page is loaded the datagrid is populated with values from the database. The datagrid contains multiple columns including state and manager name.
I want to perform the following two actions.
1)If the user selects any state and clicks go then I want the same datagrid to populate values with the selected state only or if the uesr selects a manager name then the datagrid should be populated with all the values with that selected managers name.
2)Also I have a link field called propID in the datagrid. Once the user clicks the link I want to select all the values for that PropId and populate in next page with the values.

Can you guys have any solutions for this?
Advance Thanks.
Pal
 
Pal - I believe a cursory search (find the SEARCH tab) here will lead you to a solution (filtering the datagrid on postback should be a straightaway event - see FAQ on passing variables to the server for postback on datagrids). Do a little digging around here and search on terms such as "Linkbutton + Datagrid" etc.

Post back here as you develop this problem and we'll help you along.
 
as Isadore stated, use the search option.

also, for future post's try not to put "Need Help" in the subject line. you wont get much feedback.

next time put something like. "Need Help with Datagrid ddl"

or something that refers to your problem.


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top