Click here to Skip to main content
15,892,005 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello friends,

In my windows form application i have one datagrid and one combobox.
at form load i binded both the combobox and datagrid.
when i change the text of combobox it changes the value in datagrid.
this code i have written in combobox's SelectedIndexChanged event.
but when i select particular row of grid it fires the SelectedIndexChanged event of combobox and gives me error
"Operation is not valid because it results in a reentrant call to the SetCurrentCellAddressCore function."
plz help me why such error occurs. thanks in advance.
Posted
Comments
Vaishali P. Patil 13-Jun-13 5:40am    
I want to fire selected index changed.
yourfriendaks 13-Jun-13 5:48am    
r u binded both combox and grid with one dataset ?
Vaishali P. Patil 13-Jun-13 6:54am    
Yes

1 solution

Create Different Dataset For Both ComboBox And GridView
And Bind The Controls With Their Respective Dataset
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900