Re: [Gambas-user] Gridview sort function

2014-12-29 Thread T Lee Davidson
Bill, my message asking if it helped was delivered after yours due to the mailing list issue. Glad it helped :-) Thanks to Bruce for clearing that up. Lee __ "Artificial Intelligence is no match for natural stupidity." On 12/25/2014 04:04 AM, bill-lancaster wrote: > Bruno and Lee, tha

Re: [Gambas-user] Gridview sort function

2014-12-28 Thread bill-lancaster
Bruno and Lee, thank you for the Christmas present! Bill -- View this message in context: http://gambas.8142.n7.nabble.com/Gridview-sort-function-tp49863p49878.html Sent from the gambas-user mailing list archive at Nabble.com. ---

Re: [Gambas-user] Gridview sort function

2014-12-28 Thread T Lee Davidson
On 12/24/2014 05:40 PM, B Bruen wrote: > On Wed, 24 Dec 2014 11:57:11 -0500 > T Lee Davidson wrote: > >> Apparently I didn't take enough time, Bill. >> >> I only tested that the text of the TextBox changed appropriately for a >> column_click, I did not test clicking Button1. >> >> You are right.

Re: [Gambas-user] Gridview sort function

2014-12-24 Thread B Bruen
On Wed, 24 Dec 2014 11:57:11 -0500 T Lee Davidson wrote: > Apparently I didn't take enough time, Bill. > > I only tested that the text of the TextBox changed appropriately for a > column_click, I did not test clicking Button1. > > You are right. The value of TableView.Columns.Ascending within

Re: [Gambas-user] Gridview sort function

2014-12-24 Thread Charlie Reinl
Am Mittwoch, den 24.12.2014, 11:57 -0500 schrieb T Lee Davidson: > Apparently I didn't take enough time, Bill. > > I only tested that the text of the TextBox changed appropriately for a > column_click, I did not test clicking Button1. > > You are right. The value of TableView.Columns.Ascending w

Re: [Gambas-user] Gridview sort function

2014-12-24 Thread T Lee Davidson
Apparently I didn't take enough time, Bill. I only tested that the text of the TextBox changed appropriately for a column_click, I did not test clicking Button1. You are right. The value of TableView.Columns.Ascending within the Column_Click event does not agree with the value outside of the Co

Re: [Gambas-user] Gridview sort function

2014-12-24 Thread bill-lancaster
Thanks for taking the time Lee, In fact I made that error when composing a simple example, my main programme didn't have that error. To make things simple for myself I toggle a boolean value every time the gridview1_ColumnClick event occurs rather than use the Ascending value. Thanks again Bill

Re: [Gambas-user] Gridview sort function

2014-12-23 Thread T Lee Davidson
This code: Public Sub TableView1_ColumnClick(Column As Integer) TextBox1.Text = "column = " & Column & " sort = " If TableView1.Columns.Sort Then TextBox1.Text &= "Asc" Else TextBox1.Text &= "Desc" Endif End uses the wrong property. TableView1.Colum

Re: [Gambas-user] Gridview sort function

2014-12-23 Thread bill-lancaster
Thanks for that Lee, Please see the attached example. The result of the column_click event does not agree with the results of button1_click which reports on the state of .Ascending. In fact after two column_clicks there is no change of state with the Ascending property with the column_click even

Re: [Gambas-user] Gridview sort function

2014-12-23 Thread T Lee Davidson
A column-click changes the state of TableView.Columns.Sort. But that value appears to be one click "behind" which the following code shows: Public Sub TableView1_ColumnClick(Column As Integer) Print Column, TableView1.Columns.Sort End Lee __ "Artificial Intelligence is no match fo

[Gambas-user] Gridview sort function

2014-12-23 Thread bill-lancaster
After setting the sort option (TableView1.Sorted = True) does a click on a column change the state of TableView1.Columns.Sort or do I need to change it myself? -- View this message in context: http://gambas.8142.n7.nabble.com/Gridview-sort-function-tp49863.html Sent from the gambas-user mailin