Real Software Forums

The forum for Real Studio and other Real Software products.
[ REAL Software Website | Board Index ]
It is currently Wed Dec 11, 2019 2:44 pm
xojo

All times are UTC - 5 hours




Post new topic Reply to topic  [ 6 posts ] 
Author Message
 Post subject: Einhugur Data Grid Question
PostPosted: Thu Nov 11, 2010 4:01 pm 
Offline

Joined: Mon Aug 16, 2010 8:53 am
Posts: 17
I have poured over the boards and the documentation for Einhugur's Data Grid and I have a few questions I can't find. They are simple ones. I admit, I am new to the plugin but it looks very powerful.

I've used the RB listbox for years but I need something for showing about 4 million records from a government database.

1. The page up and page down arrows seems to be disabled, something that seems to be active in the RB Listbox naturally.

2. How can I return the listindex I am on?

3. How can I got to a point in the listbox like in RB listindex method?

4. Copy and pasting, how can I copy row text?

5. Is there a rowtag property, I see you can use itemdata as a tag but I am not sure how to use it.

6. How can you resize columns manually?

Simple questions, I know.


Top
 Profile  
Reply with quote  
 Post subject: Re: Einhugur Data Grid Question
PostPosted: Thu Nov 11, 2010 5:14 pm 
Offline
User avatar

Joined: Fri Sep 30, 2005 11:48 am
Posts: 3554
Location: Lenexa, KS
Answers to your questions individually:

1. Make sure you have VerticalScrollbar and LiveScroll properties set to true.
2. Look at the Selection method. It has a number of properties that related to rows that are selected.
3. Not sure what you mean. You mean scroll to a particular row? Look at VScrollValue.
4. Use the Selection method described in item 2. Then look at the Cell methods to get and set text. Just like in the RB listbox there's nothing automated to let you do that.
5. ItemData is the same as RowTag. MyGrid.Row(1-based-index).ItemData = MyClass
6. Use CColumnResize class found at http://einhugur.com/Html/free3rd.html.

_________________
Bob K.

A blog about being a Real Studio/Xojo developer at http://www.bkeeneybriefs.com


Top
 Profile  
Reply with quote  
 Post subject: Re: Einhugur Data Grid Question
PostPosted: Thu Nov 11, 2010 5:26 pm 
Offline

Joined: Mon Aug 16, 2010 8:53 am
Posts: 17
Bob,

Thanks. You've always been a big help to users on this board.

RE: 3 - Yes. In RB I can move the listindex to a certain row. So if I have 1 million rows, I can setup an field, type in a row, and in RB the listbox will travel to that row and select it. Thus, moving the listbox to that listindex. How would I do that in the Grid? What do you recommend.

I will test the other stuff this evening during the game.

Thanks


Top
 Profile  
Reply with quote  
 Post subject: Re: Einhugur Data Grid Question
PostPosted: Thu Nov 11, 2010 5:55 pm 
Offline
User avatar

Joined: Fri Sep 30, 2005 11:48 am
Posts: 3554
Location: Lenexa, KS
joc_real wrote:
RE: 3 - Yes. In RB I can move the listindex to a certain row. So if I have 1 million rows, I can setup an field, type in a row, and in RB the listbox will travel to that row and select it. Thus, moving the listbox to that listindex. How would I do that in the Grid? What do you recommend.


Besides don't put 1 million rows into the grid? Look at the Einhugur DataGrid instead. If you MUST have that many rows, the DataGrid is designed with that in mind.

Otherwise, use the VScrollValue so if you want to scroll to row 5000 you would literally set the VScrollValue to that.

_________________
Bob K.

A blog about being a Real Studio/Xojo developer at http://www.bkeeneybriefs.com


Top
 Profile  
Reply with quote  
 Post subject: Re: Einhugur Data Grid Question
PostPosted: Fri Nov 12, 2010 11:01 am 
Offline

Joined: Mon Aug 16, 2010 8:53 am
Posts: 17
That's what I am using. The DataGrid is helpful.

1.How would you select say row 1000 out of 5000?
2.How would I loop through a set of selected rows and say get the first column, first cell contents.

Thanks


Top
 Profile  
Reply with quote  
 Post subject: Re: Einhugur Data Grid Question
PostPosted: Fri Nov 12, 2010 12:05 pm 
Offline
User avatar

Joined: Fri Sep 30, 2005 11:48 am
Posts: 3554
Location: Lenexa, KS
Look at the DataGrid.RequestRowData event. I'm sure there's an example to show you how to use it as well.

Look at the Cell or Row functions. You can get the contents of a cell through each one.

_________________
Bob K.

A blog about being a Real Studio/Xojo developer at http://www.bkeeneybriefs.com


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 6 posts ] 

All times are UTC - 5 hours


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group