Ticket T1219412
Visible to All Users
Duplicate

We have closed this ticket because another page addresses its subject:

How to set up an unbound item in a data-aware View

Re: How to create an editable unbound column in a bound View

created a year ago

Hello,

This question has been asked, but the solution no longer points to a correct answer. A1095 points to using the CheckBoxVisibilty property, not how to set up an unbound column in a data-aware view. Could you please provide step-by-step instructions or an example project as to how this should be done properly? There are several references I found to doing this, but they all point to A1095, which as I mentioned, does not provide the solution. I need an unbound column that will allow entry of a quantity, not a checkbox selection.

Here is how A1095 is referenced, but it does not provide a solution to entering a quantity.

*"As you could read in the A1095: How to set up an unbound item in a data-aware View, it is necessary to execute four steps to correctly create an unbound column"
*

Thanks,

Mike

Answers approved by DevExpress Support

created a year ago (modified 6 months ago)

Hello Mike,

The example in this KB article illustrates how to implement an unbound column with checkboxes. This solution is obsolete, and it has disadvantages since it requires SmartRefresh, so we implemented web-style selection checkboxes.

As an alternative, you can create an empty column, use HitTests to respond to user actions, handle the OnGetDataText or OnCustomDrawCell event to display text, and store values in a separate structure (e.g., an array or a dictionary).

I attached sample projects that illustrate this idea.

    Show previous comments (2)
    SP SP
    Stefan Prister a year ago

      Hello Vasile,

      you can make a calculating column at the end of the columns and do the sum of the horizontal columns in the expression editor.
      See example.

      Kind regards Stefan from Vinschgau

        Stefan Thank you very much!
        This is a perfect solution!

        SP SP
        Stefan Prister a year ago

          Hello Vasilis,

          If I can, I'm happy to help. The simpler the solution, the friendlier for the user.

          Kind regards Stefan from Vinschgau

          Disclaimer: The information provided on DevExpress.com and affiliated web properties (including the DevExpress Support Center) is provided "as is" without warranty of any kind. Developer Express Inc disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.

          Confidential Information: Developer Express Inc does not wish to receive, will not act to procure, nor will it solicit, confidential or proprietary materials and information from you through the DevExpress Support Center or its web properties. Any and all materials or information divulged during chats, email communications, online discussions, Support Center tickets, or made available to Developer Express Inc in any manner will be deemed NOT to be confidential by Developer Express Inc. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.