binding datagrid dynamically with "add button"

Please support our ASP.NET advertiser: Intel Parallel Studio Home
Reply

Join Date: Sep 2007
Posts: 28
Reputation: nice_true is an unknown quantity at this point 
Solved Threads: 0
nice_true nice_true is offline Offline
Light Poster

binding datagrid dynamically with "add button"

 
0
  #1
Jul 22nd, 2008
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
Reply With Quote Quick reply to this message  
Join Date: Apr 2007
Posts: 370
Reputation: greeny_1984 is an unknown quantity at this point 
Solved Threads: 29
greeny_1984's Avatar
greeny_1984 greeny_1984 is offline Offline
Posting Whiz

Re: binding datagrid dynamically with "add button"

 
0
  #2
Jul 23rd, 2008
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

  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
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Other Threads in the ASP.NET Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC