I'm using a Grid as a ListView in a dialog and I'm using only Row Selection. Each Row has an Object associated to it via Cell(,0).Tag.
My question is how do I get access to my selected tagged object? In looking at previous posts and the documention, I see how I can get a range object covering the selected cells. Unfortunately, I don't see how I use the GridRangeInfo object to pluck the value out of the cell. I searched the samples hoping to see how the GetFirstCell() and GetNextCell() methods are used but didn't get any hits.
I have also looked at simply using the GridListControl instead, but my objects have lots of properties that I don't want to expose to the GUI via the control. The sample for GridListControl doesn't show how to use CreateGridColumn() method so I can add just the columns I need.
ADAdministrator Syncfusion Team October 10, 2002 11:16 AM
The GridRangeInfo object has a Top member that will return the top row of a range of rows (as well as a Bottom member). Once you have the row number, you can use it as an index into the Cell(row,0).Tag.
Post again if you need more information.
RMRollan MoskoOctober 10, 2002 02:14 PM
The .Top member did the trick for me. It turns out Top() is undocumented in my class reference documentation. I'll pay closer attention to the tooltips now.