How can the content edited by the devexpress xtragrid control take effect in real time?

Source: Internet
Author: User

 

For example, there is a column editor repositoryitemimagecombobox selection box. The selected values will not be saved (will not take effect) and will be saved only when the gridcell loses focus.

The original solution is as follows: http: // Www.devexpress.com/support/center/kb/p/a880.aspx
Manually add an event to the Edit Control
Editvaluechanged
In the event function
Add one sentence
As follows:
This . Repositoryitemimagecombobox5.editvaluechanged + = New System. eventhandler ( This . Repositoryitemimagecombobox5_editvaluechanged );
Private Void Repositoryitemimagecombobox5_editvaluechanged ( Object Sender, eventargs E)
{
Gridview_tasklist.posteditor ();
}

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.