Click here to Skip to main content
15,506,209 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Anyone got a nifty idea on how to convert a column of numbers from imperial to metric and metric to imperial based on a user selection. There can be multiple columns... so one column might be distance, another column might be force etc.
I could brute force it but there might be an easier way ???

Thanks

What I have tried:

Tried using the CUGCellFormat class but that did not work so well
Posted
Comments
Rick York 7-Feb-21 1:51am    
Nope. There isn't.
Richard MacCutchan 7-Feb-21 4:36am    
Just use an event handler that gets called when the user changes the selection.
Member 3955023 9-Feb-21 8:12am    
Ok, Thanks. Got another one ... Is there a way for the grid to move a row (with its data) up/down on the press of a button. I looked at "MoveCurrentRow" but that only seems to move the selection. Thanks
Richard MacCutchan 9-Feb-21 8:45am    
Sorry, no idea. I could not find MoveCurrentRow in the documentation.

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