Hi Vidya,
Here is the solution please follow the steps
1) Once you configured Sqldatasource right?????
2)so you click on the smart tag of your Data Grid there will be a option by name "Configure Data Source"
3)Click on that you will come across the wizard.
4)From the dropdown list uou pick up the ConnectionString.
5)Then since once you configured it already there will be radiobutton checked of Using stored procedure
6)Click next then under the select statement there will be you query you modify the previous query to the present query
7)Click next then you will come across u supplied values to your parameters on the left side.
8)To the right side there will be three dropdownboxes
9)From the first dropdownbox pick up control to it
10)From the second DropDown Box pick up from where you are suppling the value to the database from webforms for example(Textbox);
11)Click next and complete the wizard
12)SO NOW YOU MODIFIED UR STORED PROCEDURE right???????
Let me know if this helps you
NOTE:These Steps are for Using SqlDatsource Using Wizard.If not let me know vidhya i will help you from scratch
Mark As Answer if this helps you
Further Queries Recommended
Happy Coding