Click here to Skip to main content
15,891,785 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I use devexpress gridControl , i do fill gridcontrol from database,
i did add new column containt differnt value (tow column)
A new column is added that contains the difference between the two columns values (sum(depit)-sum(credit)).

i try passing all data in gridcontrol to another gridview or another form or report , but i can not passing data in the new column that contains the difference between the values of the two columns .
https://c.top4top.io/p_1729xtr5c2.png
https://b.top4top.io/p_1729u570w1.png


What I have tried:

gridcontrol2.datasource = gridcontrol.datasource;
Posted
Updated 25-Sep-20 6:43am

1 solution

You were given a suggestion in your original post: https://www.codeproject.com/Questions/5277410/Devexpress-how-can-add-data-in-first-row-or-add-da[^]. If it does not work then please post a reply to that solution, rather than reposting the same question.
 
Share this answer
 
Comments
Member 9116808 25-Sep-20 16:22pm    
thank you for replay,

orginal post about new row in grid view

this qustion for passing data
Richard MacCutchan 26-Sep-20 3:58am    
You need to add the new columns and data to the datasource.
Member 9116808 26-Sep-20 12:10pm    
pls
put code or example
Richard MacCutchan 26-Sep-20 12:33pm    
You have not provided enough information for us to guess what is happening.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900