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
565
Format cell bound to a datatable with a byte[] array
posted

Hi,

I have a bound data table which has a byte array column.

How can I format a specific cell that is bound to a byte array ?

I would like to display the hexadecimal value of the byte array.

Thanks.

Parents
  • 21795
    Offline posted

    Hello Abraham,

    As Mike wrote there are several ways to achieve this. Please find attached a sample solution implementing approach with DataFilter. The steps to implement this approach are:

        1.Add UltraTextEditor to your UltraGrid specific cell or column.

        2. Create a custom class implementing IEditorDataFilter interface. This interface allows you to "intercept" the values assigned to and from the editor and its owner, and change those values as required by the application.

        3. Set to UltraTextEditor’s DataFilter property to an instance of the custom class.

    More about IEditorDataFilter you can find by following next link http://help.infragistics.com/Help/Doc/WinForms/2012.1/CLR2.0/HTML/WinGrid_Using_the_IEditorDataFilter_Interface_with_WinGrid.html

    Please let me know if this is what you are looking for or if I am missing something.

    CAS-146109-P3Y7Q7.zip
Reply Children