How to make Editable ComboBox in Silverlight

Posted by Kunal09 under Silverlight on 8/30/2011 | Points: 10 | Views : 3486 | Status : [Member] | Replies : 1
Hi,

I want to know that how we can make combo box editable in silverlight programetically.
Means if I have a combo box in my app which shows the list of 10, 20,30,40,50 in that
combo box to show the no. of rows in a grid.

If I want to display 15 rows in a grid then I am just write in combo box 15 then
it will display the 15 rows in a respected grid.

Thanks,




Responses

Posted by: Vuyiswamb on: 8/30/2011 [Member] [MVP] [Administrator] NotApplicable | Points: 25

Up
0
Down
i think this is simple , as you said in the dropdown you have numbers , to what you need to do , to change the storeProcedure to display the "Top" certain records , and make it a dynamic query. e.g

Create proc mytestproc
(
@top int
)
as

SELECT TOP @TOP FIELD1,FIELD2, FIELD3
FROM MYTABLE


and in the selectedchanged of your dropdown get the selected value and pass it to your storedProcedure and bind the grid back.

Hope you understand.




Thank you for posting at Dotnetfunda
[Administrator]

Kunal09, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response