Click to See Complete Forum and Search --> : Editable Datagrid with Template Columns created at runtime


puru811
August 26th, 2004, 04:48 AM
hi all
i am new to asp.net
but still i have developed an application for a editable datagrid
in this i have created template columns at the runtime
and controls are textbox in the item template
what i would like to ask is how would i bind data from my database
to these textboxes
my database is in sql server
i cannot figure out how to bind the data to these text boxes
hope u all will help me to figure this out
thanx in advance
regards
purnima

MRutledge
August 26th, 2004, 07:17 PM
Use the OnDataBound Event for the data grid. This will allow you to access the elements in the grid every time something is bound to it.

cessna172k
August 31st, 2004, 12:57 PM
I went to http://aspnet.4guysfromrolla.com You will find every thing here you need just follow the steps

good luck

request
June 15th, 2005, 02:18 AM
hi all
here i could able to bind the data to template columns but the problem to summin those values and drop at the end of datagrid. how can i add these values.

A
X 10 5 ------
20 10 ------
----------------------
Y 15 0 ------
20 30 ---- (so on....)

I need to get at the end of the datagrid.

25 (10+15) 5 (5+0)
40 (20+20) 40 (10+30)
Regards
Request.