Home » U++ Library support » ArrayCtrl, HeaderCtrl & GridCtrl » Two "basic" operations on GridCtrl
Re: Two "basic" operations on GridCtrl [message #21132 is a reply to message #21128] |
Mon, 04 May 2009 15:22 |
|
kbyte wrote on Mon, 04 May 2009 08:02 | Great!
For the case of date data type, is there any way to format it to be displayed in some language format while beeing stored as a date value inside gridcontrol (usefull for good sorting operation)?
|
Of course.
struct MyDataConvert : Convert
{
Value Format(const Value& q) const
{
const Data& d = q;
return Format("%4d/%2d/%2d", d.year, d.month. d.day);
}
};
grid.AddColumn("Date column").SetConvert(Single<MyDataConvert>());
Just have a look at reference assembly. There is a nice example about converters.
|
|
|
|
|
Two "basic" operations on GridCtrl
By: kbyte on Sun, 26 April 2009 18:27
|
|
|
Re: Two "basic" operations on GridCtrl
By: unodgs on Sun, 26 April 2009 20:46
|
|
|
Re: Two "basic" operations on GridCtrl
By: kbyte on Sun, 26 April 2009 21:17
|
|
|
Re: Two "basic" operations on GridCtrl
By: unodgs on Sun, 26 April 2009 21:43
|
|
|
Re: Two "basic" operations on GridCtrl
By: kbyte on Mon, 27 April 2009 00:04
|
|
|
Re: Two "basic" operations on GridCtrl
By: kbyte on Mon, 27 April 2009 00:35
|
|
|
Re: Two "basic" operations on GridCtrl
By: unodgs on Mon, 27 April 2009 08:47
|
|
|
Re: Two "basic" operations on GridCtrl
By: kbyte on Sat, 02 May 2009 12:14
|
|
|
Re: Two "basic" operations on GridCtrl
By: unodgs on Mon, 04 May 2009 09:39
|
|
|
Re: Two "basic" operations on GridCtrl
By: kbyte on Mon, 04 May 2009 12:52
|
|
|
Re: Two "basic" operations on GridCtrl
By: unodgs on Mon, 04 May 2009 13:37
|
|
|
Re: Two "basic" operations on GridCtrl
By: kbyte on Mon, 04 May 2009 14:02
|
|
|
Re: Two "basic" operations on GridCtrl
By: unodgs on Mon, 04 May 2009 15:22
|
|
|
Re: Two "basic" operations on GridCtrl
By: kbyte on Mon, 04 May 2009 15:52
|
|
|
Re: Two "basic" operations on GridCtrl
|
Goto Forum:
Current Time: Fri Jun 07 05:33:57 CEST 2024
Total time taken to generate the page: 0.01480 seconds
|