asp.net - How to bind one column to gridview which is not present in database -


how bind 1 column gridview not present in database?

i want display total unit in last column named total unit not present in database.

i got argument exception:

column 'tunit' not belong table.

foreach(datarow row in dt.rows ) {    object[] obj=new object[2];    obj[0] = row["transaction_id"];    obj[1] = row["tunit"];    dtgrid.rows.add(obj); } 

the best solution problem implement unbound column explained in unbound columns topic.


Comments

Popular posts from this blog

c# - SharpSVN - How to get the previous revision? -

c++ - Is it possible to compile a VST on linux? -

url - Querystring manipulation of email Address in PHP -