Author Topic: Data grid view control  (Read 1317 times)

jj2007

  • Member
  • *****
  • Posts: 8895
  • Assembler is fun ;-)
    • MasmBasic
Data grid view control
« on: December 26, 2017, 11:39:14 AM »
I thought it would be handy to have a control that acts like a spreadsheet, so I search around a bit. This is the only understandable tutorial so far: http://www.functionx.com/vccli/controls/dgv.htm

The whole stuff at MSDN looks ridiculously complicated. COM seems easy in comparison. Has anybody ever touched this...?

fearless

  • Member
  • ***
  • Posts: 366
    • LetTheLightIn
Re: Data grid view control
« Reply #1 on: December 26, 2017, 11:59:04 AM »
RadASM had a spreadsheet control from what i remember
fearless

CM690II Case, HX1000 PSU, Asus Z97, Intel i7-4790K, Seidon 120v Cooler, 16GB DDR3, MSI GTX 980TI

www.LetTheLight.in  My Github  Twitter

jj2007

  • Member
  • *****
  • Posts: 8895
  • Assembler is fun ;-)
    • MasmBasic
Re: Data grid view control
« Reply #2 on: December 26, 2017, 12:18:08 PM »
Thanks, fearless. I have also tinkered with one, see \masm32\MasmBasic\Res\SkelSpreadsheet.asc for those who have MB installed. But I would prefer something that is already on the user's computer, i.e. doesn't require any installation. So I found the Windows Data grid control. But it looks unbelievably clumsy to use. When Google finds only official MSDN pages, it usually means nobody uses that crap.

HSE

  • Member
  • ****
  • Posts: 856
  • <AMD>< 7-32>
Re: Data grid view control
« Reply #3 on: December 26, 2017, 12:50:55 PM »
Hi JJ!

To enter data or to show calculations?

In my old program I use a grid to manage data.

Interesting to know if this restricted compilation work in other machines.

jj2007

  • Member
  • *****
  • Posts: 8895
  • Assembler is fun ;-)
    • MasmBasic
Re: Data grid view control
« Reply #4 on: December 26, 2017, 07:34:49 PM »
Big program, HSE, but unfortunately shortly after the splash screen it throws an exception in nt.dll; on the stack I see NtOpenKey: Does it try to write to the registry?
I also see "heap block at 00687780 modified at 006877D7 past requested size of 4f". Try opening the source in RichMasm, then add somewhere ; OPT_Debug 1 and hit F6. Perhaps you can see the heap corruption on your machine, too.

GoneFishing

  • Member
  • *****
  • Posts: 1066
  • Gone fishing
Re: Data grid view control
« Reply #5 on: December 26, 2017, 07:40:26 PM »
I played with it a little in MS VisualBasic. Very handy control when you work with MS SQL Express data base
If I understand correctly the control belongs to .NET side of the power ;-)

jj2007

  • Member
  • *****
  • Posts: 8895
  • Assembler is fun ;-)
    • MasmBasic
Re: Data grid view control
« Reply #6 on: December 26, 2017, 07:54:07 PM »
Yeah, this is dark stuff 8)

@kcvinu: see attachment
« Last Edit: April 16, 2018, 07:42:02 AM by jj2007 »

GoneFishing

  • Member
  • *****
  • Posts: 1066
  • Gone fishing
Re: Data grid view control
« Reply #7 on: December 26, 2017, 07:58:08 PM »
Yeah, Dark Matter  8)

HSE

  • Member
  • ****
  • Posts: 856
  • <AMD>< 7-32>
Re: Data grid view control
« Reply #8 on: December 27, 2017, 12:38:42 AM »
Does it try to write to the registry?

Yes. The original functions I used in Win95 were deprecated (taked from earlier masm32 examples). I change most of them no so long, but I thing still there is some (silent here) deprecated function somewehere.

Not exactly what you are searching, but show the use of some especial cells: