Link to home
Start Free TrialLog in
Avatar of 1jaws
1jawsFlag for United States of America

asked on

how to create this..

Have a grid and also dropdown controls grid displaying status.And Add Button adds to record to the grid.  LEt say I have dropdown values value = 0 , 1, 2, 3 .  

When page loads I always want to see records that associates with dropdowns value = 1  ..
When add buttons clicks that time after adding single record, I want grid to display dropdown value = 0 this time.

How can I do that?  anybody can give a sample example..
SOLUTION
Avatar of HainKurt
HainKurt
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
I think I would update my sample, update this line, not required just an after thought:

        cmd.Parameters.Add(new SqlParameter("@listOrder", Convert.ToInt32(ddl1.Items.Count)+1));

I
Avatar of 1jaws

ASKER

Thank you so much for the all the replies, especially dday, and I absolutely hate to say that , those didnt help me about what I need to achieve.. and it is hard to really explain too..So I will give the points away to you guys..