Forum  Commercial Foru...  Commercial Foru...  Force Sort To Be Set - ListView Property Items
Previous Previous
 
Next Next
New Post 2/8/2012 11:35 PM
  JamesC
634 posts
www.redcastle.co.uk
1st Level Poster




Re: Force Sort To Be Set - ListView Property Items 

Hi Derek,

use this one instead\as well:

Gizmox.WebGUI.Forms.Dialogs.ListViewColumnOptions ColumnOptions = new Gizmox.WebGUI.Forms.Dialogs.ListViewColumnOptions(listView1);
ColumnOptions.ShowDialog();

 
New Post 2/9/2012 11:22 AM
  palli
11824 posts
1st Level Poster




Re: Force Sort To Be Set - ListView Property Items 

Hi Derek,

Thanks to James for his input.

You may also be interested in a code fragment I posted a while ago on how to set various Column options for a ListView, here.

Palli

 


Páll Björnsson - Visual WebGui support team - Email: support@visualwebgui.com
 
New Post 2/11/2012 10:44 AM
  derekmhart@yahoo.com
717 posts
1st Level Poster


Re: Force Sort To Be Set - ListView Property Items 
Modified By derekmhart@yahoo.com  on 2/11/2012 2:44:50 PM)

OK, I like both the built in options, the VWG sorting dialog and the VWG columns dialog.

But here is the request. I NEVER want to see some of the columns, as they are used internally for database access, so I want some of the columns to not show in both those dialogs.

Is that functionality available? I could not find it. If so, please let me know the properties.

 
New Post 2/11/2012 1:45 PM
  palli
11824 posts
1st Level Poster




Re: Force Sort To Be Set - ListView Property Items 

Hi Derek,

Quick thoughts, and you have two options. First, if you don't need the columns within the ListView at all, you can just not add them to the ListView. If you have a databound ListView, you can bind it and then remove the columns, or you can set ListView.AutoGenerateColumns = False and add your columns manually, even through the designer. The Column.DataPropertyName decides what property from the datasource will be used to populate the column.

You second option is to make a copy of those dialog forms and modify them to suit your needs. They are public source and can be found within the Gizmox.WebGUI.Forms project on the Dialogs folder.

Hope this helps,

Palli

 


Páll Björnsson - Visual WebGui support team - Email: support@visualwebgui.com
 
New Post 2/16/2012 11:58 AM
  derekmhart@yahoo.com
717 posts
1st Level Poster


Re: Force Sort To Be Set - ListView Property Items 

I started copying over these dialog forms from the source code, and now I am in 10 levels deep into grabbing every class needed to run these dialog forms. Is there a smarter way to do this, find all the dependencies?

So I was thinking of trying to fake out these dialog forms, by making a copy of the listview at runtime, removing the columns I don't want, and then basing the dialog popup on that. Then upon closing it, copy the sort options to the first listview. Any thoughts on code to do this?

 
Previous Previous
 
Next Next
  Forum  Commercial Foru...  Commercial Foru...  Force Sort To Be Set - ListView Property Items
Azure banner
.NET Web, Cloud and Mobile application delivery platform | Sitemap | Terms of Use | Privacy Statement | Copyright © 2005-2011 Visual WebGui®       Visual WebGui weblog on ASP.NET Visual WebGui Group on LinkedIn Visual WebGui updates on Twitter Visual WebGui Page on Facebook Visual WebGui YouTube Channel Visual WebGui Platform News RSS