set a datasource for gridview
-
I want to bind my gridview with a table in session(not from database). Can I provide th inline editing facility(as provided by using sqlDatasource). ie when i click edit a text box appears in grid view to enter the value. Is it possible. Kindly help me.
-
I want to bind my gridview with a table in session(not from database). Can I provide th inline editing facility(as provided by using sqlDatasource). ie when i click edit a text box appears in grid view to enter the value. Is it possible. Kindly help me.
You would need to store the table in the session, b/c it needs to persist between postbacks, that's what the data base is for, usually.
Christian Graus Driven to the arms of OSX by Vista.
-
I want to bind my gridview with a table in session(not from database). Can I provide th inline editing facility(as provided by using sqlDatasource). ie when i click edit a text box appears in grid view to enter the value. Is it possible. Kindly help me.
You can easily bind a table in session by casting it i.e grid.datasource = (DataTable)Session["Datatable"]; grid.databind(); And providing inline editing is also possible.
-
I want to bind my gridview with a table in session(not from database). Can I provide th inline editing facility(as provided by using sqlDatasource). ie when i click edit a text box appears in grid view to enter the value. Is it possible. Kindly help me.
add this in columns of GV
remove
xmlns:asp="#unknown"
, CC bug in postingTVMU^P[[IGIOQHG^JSH`A#@`RFJ\c^JPL>;"[,*/|+&WLEZGc`AFXc!L %^]*IRXD#@GKCQ`R\^SF_WcHbORY87֦ʻ6ϣN8ȤBcRAV\Z^&SU~%CSWQ@#2 W_AD`EPABIKRDFVS)EVLQK)JKSQXUFYK[M`UKs*$GwU#(QDXBER@CBN% Rs0~53%eYrd8mt^7Z6]iTF+(EWfJ9zaK-iTV.C\y<pjxsg-b$f4ia> -------------------------------------------------------- 128 bit encrypted signature, crack if you can
-
You can easily bind a table in session by casting it i.e grid.datasource = (DataTable)Session["Datatable"]; grid.databind(); And providing inline editing is also possible.
hi Kashif, Thanks for bothering. I know how to bind my gv with a table. I just wanna know how can I provide inline editing facility. I hv taken EditItemTemplate and a textbox in it. I cant figure out how to show this text box when user clicks edit. Any help is appreciated. Thanks..