datagrid expression-urgent

  • Thread starter Thread starter reiks
  • Start date Start date
R

reiks

My select query is a s follows
select qty from sales;

My datagrid as two template columns with textboxex in Item
template.I want to use second template column as a
compute column in my datagrid which
depends on column 'qty' values of my select statement

compute column's value should be as follows
if( qty > 10) qty+10 else
qty-10

How can give my 'DataBinder.eval(containder.dataitem))'
expression to my textbox in html?

How can I acheive this?

How complex evaluation expressions can be given for
datagrid columns either at design time or programatically?

plzzz help me out

thanks in advance,
vijaya
 
If you need to do something complex at bind time attach a
function to the ItemDataBound Event of the datagrid. You
will get an event for each item at which point to can
modify the databinding programmaticly
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top