Jump to content


Photo

Caption and value of a cell


  • Please log in to reply
4 replies to this topic

#1 able

able
  • Members
  • 4 posts

Posted 25 May 2009 - 01:14 PM

Hello!

I need help: to put in a cell: $value1 ($value2).
To do this, well suited htmlcolumn, at the same time you can make up the correct values.

But I need to make a numeric sort by the $value.

Ie fact that the cells have two options: caption and value.
Caption is displaying on the screen to the user, and the value is the sorting, calculating footer, etc.

Can I do it be means of NXGrid?

P.S. Sorry for my English, I'm from Russia.

#2 Boki (Berg)

Boki (Berg)

    Boki (Berg)

  • Forum Admin
  • PipPipPipPipPip
  • 7,893 posts
  • Gender:Male

Posted 25 May 2009 - 01:20 PM

Hello Maxim,

I am not sure that I understand a question, but I will try to answer smile.gif

Maybe setting SortType property of Column to stNumeric is what you need.

I hope that this helps. If not, please write me.

Best regards
boki@bergsoft.net | LinkedIn Profile
--
BergSoft Home Page: www.bergsoft.net
Members Section: bms.bergsoft.net
Articles and Tutorials: dn.bergsoft.net (Developers Network)
--
BergSoft Facebook page
--
Send us applications made with our components and we will submit them on: www.bergsoft.net/apps.htm. Link to this page will be also set on home page too.

#3 able

able
  • Members
  • 4 posts

Posted 25 May 2009 - 02:02 PM

QUOTE (Boki (Berg) @ May 25 2009, 01:20 PM) <{POST_SNAPBACK}>
Hello Maxim,

I am not sure that I understand a question, but I will try to answer smile.gif

Maybe setting SortType property of Column to stNumeric is what you need.

I hope that this helps. If not, please write me.

Best regards


Hello!

I can give an example:

I want: when I'm creating htmlcolumn and setting values such as:

CODE
0: <font color="red">80</font> <font color="green">(190)</font>
1: <font color="red">180</font> <font color="green">(190)</font>
2: <font color="red">10</font> <font color="green">(190)</font>
3: <font color="red">120</font> <font color="green">(190)</font>
4: <font color="red">240</font> <font color="green">(190)</font>


and after descending sort:

CODE
0: <font color="red">240</font> <font color="green">(190)</font>
1: <font color="red">180</font> <font color="green">(190)</font>
2: <font color="red">120</font> <font color="green">(190)</font>
3: <font color="red">80</font> <font color="green">(190)</font>
4: <font color="red">10</font> <font color="green">(190)</font>


when I'm setting SortType to stNumeric IDE raises exaption 'EConverError' (which was expected).



#4 able

able
  • Members
  • 4 posts

Posted 25 May 2009 - 02:54 PM

I've found this http://dn.bergsoft.n...tom-sorting.htm

I think, it will help :-)

#5 Boki (Berg)

Boki (Berg)

    Boki (Berg)

  • Forum Admin
  • PipPipPipPipPip
  • 7,893 posts
  • Gender:Male

Posted 25 May 2009 - 03:47 PM

Hello Maxim,

I hope that this Article will help you.

Best regards
boki@bergsoft.net | LinkedIn Profile
--
BergSoft Home Page: www.bergsoft.net
Members Section: bms.bergsoft.net
Articles and Tutorials: dn.bergsoft.net (Developers Network)
--
BergSoft Facebook page
--
Send us applications made with our components and we will submit them on: www.bergsoft.net/apps.htm. Link to this page will be also set on home page too.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users