943,719 Members | Top Members by Rank

Ad:
  • ASP.NET Discussion Thread
  • Unsolved
  • Views: 1240
  • ASP.NET RSS
Jul 22nd, 2008
0

binding datagrid dynamically with "add button"

Expand Post »
hi all!

plz help me with this prblm of mine

I wish to bind a datagrid dynamically with access database , and at the same time it should contain "add", "delete" and "edit" buttons too

this can be done very simply in html if the table name is fixed.

but my prblm is that the tablename is to be specified in a textbox at run time...................!!!!!!

hence, i do not know the name or number of columns in advance.........................

Is this possible???????????

If yes, then plz reply...........

thanks in advance
Reputation Points: 10
Solved Threads: 0
Light Poster
nice_true is offline Offline
28 posts
since Sep 2007
Jul 23rd, 2008
0

Re: binding datagrid dynamically with "add button"

what query u r using to retrieve the table from database
u can achieve all the features of a gridview in server side same as client side,for ex
u can declare these on button click

ASP.NET Syntax (Toggle Plain Text)
  1. displaygrid.autogeneratecolumns=false;
  2. displaygrid.datasource=tbl;
  3. displaygrid.databind();
Last edited by Tekmaven; Jul 24th, 2008 at 3:12 am. Reason: Code tags
Reputation Points: 25
Solved Threads: 29
Posting Whiz
greeny_1984 is offline Offline
372 posts
since Apr 2007

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in ASP.NET Forum Timeline: how to add web page into web control library to make a dll in web page
Next Thread in ASP.NET Forum Timeline: need help





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC