How to insert a string before data in field

How to insert a string before data in field

KrlinhosKrlinhos Posts: 8Questions: 0Answers: 0
edited December 2012 in General
Fisrt excuse me for my use of english.

I have a DataTable with (n) columns, the last two of it are for edit/delete button action columns. The cell format for that columns would be like:

[code] $data (from database)[/code]

For example:

[code]id5[/code] [quote]for delete action.[/quote]

How can I agree a variable string and the data from database?
I know how to put a string (with mData) and a data separately, but not together.

Thanks a lot.

Replies

  • allanallan Posts: 63,531Questions: 1Answers: 10,474 Site admin
    You can use mData for that (as a function), but I'd suggest you use mRender instead (possibly as well as mData to get the id data from the data source object).

    Allan
  • KrlinhosKrlinhos Posts: 8Questions: 0Answers: 0
    thank you very much! :) i will try it :)
This discussion has been closed.