Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
1120
Problem with display member and value member
posted

 Hi

In my grid one column is a combo dropdown. The display member is name(string) and the value member is number(int). i get the data from database.

I can type both name(string) and number(int)  in this column and save it. I used celldataerror and before cell update events to achieve this.

 My problem is if i type a number and if that exists as in database as value member( since it is a number(int)), the ultracombo is displaying the respective display member of that value member.

But i dont want  the ultracombo to display the display member of that value member as i want to save that number as a string in the displymember filed as name.

Can anyone tell me how to remove the automatic display of the display member if we type the value member in ultracombo???

Thanks in advance

Navi 

 

 

Parents
No Data
Reply
  • 1120
    posted

     Hi everyone

    I found work around solution to the above mentioned problem.

    We can use ultragrid_BeforeExitEditMode event and solve the above problem

    In this event first we will compare the typed name to all the names present in the database. If that name is present dont do anything, else save it to database.  :)

    Navi 

Children