HI
I have using
1. ultrgird and the grid have one dropdownlist column.
2. Using ultradropdwon to bind the value to the griddrowpdwon colu
here uddIRole is a ulttradropdown and UserRoleName is cloumn in grid having the dropdown list
now I will elaborate it more.
now the ultradropdwon have 2 column 1. userrolename and other is userroleid and suppose the userrolename have value "admin" and userroleid is 2, on display it shown correctly the "admin" in dropdown but when I try to save it then userrolename have value userroleid ,I am not getting how I get selected value from dropdown to set to userroleid instead of userrolename .
More code as below:
Hello,
The reason why you are seeing the UserRoleId instead of the UserRoleName is because you have set the value member of the drop down to UserRoleId, because of that you are present with the UserRoleName in the drop down but you are getting the UserRoleId once you select a role from the drop down. In order to get the UserRoleName just remove the line where you set the ValueMember property of the drop down to UserRoleId.
If this doesn’t solve your issue could you provide us with some more details like what do you mean by drop down having 2 columns. Providing a small sample application that demonstrates this issue would be ideal. Having a working sample on my side, which I can debug, is going to be very helpful in finding the root cause of this.
Please let me know if you have any questions.
Sincerly, Ivan Kitanov