Hi there, I have a few questions here:

1. How to load and save time and date?

When the application is executed for the first time, these 5 textBoxes will show the CURRENT DATE and TIME following Windows default date and time.

So I must get it as a DateTime object right? How to load and save it as String, I use textfile of CSV format?

Time: <textBox1, hour (range 00-23)>  <textBox2, minute (range 00-59)>

Date:

Year: <textBox3>    Month: <textBox4>    Day: <textBox5>

And I also want to use the time for data sorting, is it possible if I use String? Or should I use
DateTime type in order to sort the data based on time? For details about this, look at my question related with sorting below.

 

2. How to sort listView if I click a column name? I use the DataView class as the listView data source in the filterSel function you gave me on the previous post. Please show me how to use it to manipulate the listView display.

I have got these 6 columns:

Support Name
Support Time <hh:mm>
Customer Company
Customer Name
Content Type 
Finish Time    <hh:mm>


I want to make the sorting like Windows Explorer. So when the application is executed for the first time, the data is still in unordered view.

When I click one of the column name above let say Support Name, the data will be sorted in ASCENDING based on Support Name. If I click column Support Name again, it will TOGGLE the sort mode become DESCENDING. All columns are TOGGLE ASCENDING DESCENDING like the Windows Explorer.

How to do it?

 

3. I also want to filter listView based on Date. I have successfully use the DataView->RowFilter method you gave to do that but this time, the column Date I want to use to filter the data is not displayed.

 

It is like this:

Year: <textBox3>    Month: <textBox4>    Day: <textBox5>

listView:
Support_Name | Support_Time | Customer_Company | Customer_Name | Content_Time | Finish_Time

when I change one of the Date component above, the listView will filter based on date. Only date. But the column Date is not displayed like in the listView above.

Is it possible to hide the Date column in the listView or how?


Thank you very much.