KiXforms Forum Index KiXforms
The Forum for the KiXforms Community
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 Quick Links 
Site News
Downloads
Documentation
Donations
Script Archive
Tracking Systems

GridView Sticky Discussion
Goto page 1, 2, 3, 4, 5  Next
 
Post new topic   Reply to topic    KiXforms Forum Index -> Discussion
View previous topic :: View next topic  
Author Message
Shawn
KiXforms Developer
KiXforms Developer


Joined: 22 Feb 2003
Posts: 1983
Location: Canada

PostPosted: Mon Jan 10, 2005 3:37 pm    Post subject: GridView Sticky Discussion Reply with quote

Please provide any GridView releated discussion here.
Back to top
View user's profile Send private message
Jochen
KiXforms Devotee
KiXforms Devotee


Joined: 05 Mar 2003
Posts: 1204
Location: Stuttgart, Germany

PostPosted: Mon Jan 10, 2005 3:52 pm    Post subject: Reply with quote

Thanx for the update Shawn,

looks very promising and feature rich.
More feedback to come of course

Bookworm

_________________
Jochen

Tell me, and I will forget.
Show me, and I may remember.
Involve me, and I will understand.
Back to top
View user's profile Send private message MSN Messenger
Shawn
KiXforms Developer
KiXforms Developer


Joined: 22 Feb 2003
Posts: 1983
Location: Canada

PostPosted: Mon Jan 10, 2005 4:07 pm    Post subject: Reply with quote

I "broke-out" the script called GRID.KIX into a seperate downloadable section of the DEV BUILD thread. Included in this zip is a "grid" (a grd file) called "TASK.GRD" that has a very small sample grid. The combobox is in there as well.

I invite anyone that can successfully create a "grd" file to post it here, and I will include it into the grid sample distribution.

Again - there is much work still to be done on GridView - I'm hoping the rest of the development can be driven from board member requests and/or design ideas ...
Back to top
View user's profile Send private message
krabourn
KiXforms Aficionado
KiXforms Aficionado


Joined: 05 Mar 2003
Posts: 273
Location: San Antonio. TX

PostPosted: Mon Jan 10, 2005 4:15 pm    Post subject: Reply with quote

Cool!

One very important question for me. I need to be able to remove columns. I don't see an example in your code. Removing columns from right to left is fine but I just want to make sure it is there. For my projects, I don't see an imediate need for removing a column in the middle of other columns.

Thanks for the hard work.

_________________
Kelly
Back to top
View user's profile Send private message Send e-mail MSN Messenger
Shawn
KiXforms Developer
KiXforms Developer


Joined: 22 Feb 2003
Posts: 1983
Location: Canada

PostPosted: Mon Jan 10, 2005 4:34 pm    Post subject: Reply with quote

Cant remove columns on the fly at the moment - can only tear-down the sheet and rebuild the columns - then rows. I can start working on that feature now - if you really have the need though.

As well - there is nothing carved-in-stone at this time. Jochen mentioned one of the things I was agonizing over early on with GridView - whether to use the "SelectedRow" or "CurrentRow" property names - .net uses CurrentRow and thats what I decided to stick with. However SelectedRow (to me) seems more intuitive - at the end of the day, its just a name I know. If anyone has any thoughts, please advise.

The other thing I'm working on now is "captions" for CheckBox cells. I want to be able to provide "captions" in CheckBoxes (just like regular CheckBoxes), but cant use the "value" or "text" properties (because they're already used by the actual cell value/text itself) ... and then if there are captions, how should the cell be aligned (centered/left?) ... so still much work to do.

-Shawn
Back to top
View user's profile Send private message
krabourn
KiXforms Aficionado
KiXforms Aficionado


Joined: 05 Mar 2003
Posts: 273
Location: San Antonio. TX

PostPosted: Mon Jan 10, 2005 5:19 pm    Post subject: Reply with quote

Is it possible to clear all the rows and column without destroying the gridview?

Here is a very basic list of what the app does.
    load a file with computers into a top list.
    There are buttons to do actions against the selected computers, such as ping, copy files, a buch of other stuff,...
    There is an output list that the columns will change according to what button you use.


This is why I need to be able to remove columns.

Hope that makes sense.

_________________
Kelly
Back to top
View user's profile Send private message Send e-mail MSN Messenger
Shawn
KiXforms Developer
KiXforms Developer


Joined: 22 Feb 2003
Posts: 1983
Location: Canada

PostPosted: Mon Jan 10, 2005 5:30 pm    Post subject: Reply with quote

You can clear the GridView by doing this:

$GridView.RowCount = 0
$GridView.ColumnCount = 0

Then you rebuild populate it like this:

$GridView.ColumnCount = 10
$GridView.RowCount = 100

There is one more important thing that you can't do with the GridView yet, and that is to select multiple rows - cant do that yet. So if these are firm requirements for your particular app, then I better start cracking on them.

Just have to understand (I know you do) that the GridView is a very complex control, and some stuff had to be defered until a basic working control was developed (think we have that) ... and like I said, more work needs to be done.
Back to top
View user's profile Send private message
krabourn
KiXforms Aficionado
KiXforms Aficionado


Joined: 05 Mar 2003
Posts: 273
Location: San Antonio. TX

PostPosted: Mon Jan 10, 2005 6:39 pm    Post subject: Reply with quote

I am afraid multiple row selection will be important also.

Did you think you would have this much work when you finally started coding the gridview?

I guess the thing to remember is if the the listview can do it the gridview better be able to. You probably already know that.

_________________
Kelly
Back to top
View user's profile Send private message Send e-mail MSN Messenger
Shawn
KiXforms Developer
KiXforms Developer


Joined: 22 Feb 2003
Posts: 1983
Location: Canada

PostPosted: Mon Jan 10, 2005 6:49 pm    Post subject: Reply with quote

ja, i hear you. Do you think its important to have as much backward compatibility as possible - between the GridView and the ListView - to the extent of almost being able to hot swap the GridView right in, and have it work - this could be done.

Actually thinking more about it - having near 100% compat. might solve some design issues i am grappling with right now - hmmmmm
Back to top
View user's profile Send private message
krabourn
KiXforms Aficionado
KiXforms Aficionado


Joined: 05 Mar 2003
Posts: 273
Location: San Antonio. TX

PostPosted: Mon Jan 10, 2005 7:12 pm    Post subject: Reply with quote

Hot swappable would be nice but wouldn't that mean you have to rewrite the gridview? I don't know if I want you to do that. Good or bad, I tend to think of the gridview as the big brother of the listview. The syntax does not have to be the same as the listview but I think it should be able to do the same things.
_________________
Kelly
Back to top
View user's profile Send private message Send e-mail MSN Messenger
Shawn
KiXforms Developer
KiXforms Developer


Joined: 22 Feb 2003
Posts: 1983
Location: Canada

PostPosted: Mon Jan 10, 2005 7:24 pm    Post subject: Reply with quote

Much work ? No not really - its the "interface" the determines most of the compatibility issues - the "meat" of the GridView would always stay the same - here's an example (from .net).

.Net ListView has the "FullRowSelect" property that determines whether a full row is selected, .Net GridView has the "SelectionMode" property. ListView has the SelectedItem property - GridView has the SelectedRow property - just mostly different "names" that do basically the same thing

What i'm saying is that changing the "interface" is easy to do - its the meat that takes the work - and that wont change.
Back to top
View user's profile Send private message
krabourn
KiXforms Aficionado
KiXforms Aficionado


Joined: 05 Mar 2003
Posts: 273
Location: San Antonio. TX

PostPosted: Mon Jan 10, 2005 7:43 pm    Post subject: Reply with quote

Since you have tried to keep kixforms syntax close to being the same as .net, I would rather you not change now. I know there have been exceptions but I don't think this warrents changing now.

Boy! I hardly ever post and then... Yap! Yap! Yap!

_________________
Kelly
Back to top
View user's profile Send private message Send e-mail MSN Messenger
Shawn
KiXforms Developer
KiXforms Developer


Joined: 22 Feb 2003
Posts: 1983
Location: Canada

PostPosted: Mon Jan 10, 2005 9:14 pm    Post subject: Reply with quote

Well, since your the yappy one, you get nominated to help me whip this GridView into shape ;0) ... (and cappy too).

What feature should be worked-on first (the one that can at least "get you going") ... column deletion or multi-row select ?

-Shawn
Back to top
View user's profile Send private message
krabourn
KiXforms Aficionado
KiXforms Aficionado


Joined: 05 Mar 2003
Posts: 273
Location: San Antonio. TX

PostPosted: Mon Jan 10, 2005 9:52 pm    Post subject: Reply with quote

Since it looks like I can delete columns in mass by setting the columncount to 0, I would say selecting multiple rows.
_________________
Kelly
Back to top
View user's profile Send private message Send e-mail MSN Messenger
Les
KiXforms Aficionado
KiXforms Aficionado


Joined: 24 Dec 2003
Posts: 317

PostPosted: Mon Jan 10, 2005 11:52 pm    Post subject: Reply with quote

If it is not possible to delete columns, what about just hiding them? Would that work for you, Kelly?

I have an Excel user that did not know how to delete columns so he would just hide them.

_________________
The Repro Man
Stealing for a living!
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    KiXforms Forum Index -> Discussion All times are GMT
Goto page 1, 2, 3, 4, 5  Next
Page 1 of 5

 
Jump to:  
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
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group