Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

datagrid sql statement help

Status
Not open for further replies.

slwolf8

Technical User
Apr 23, 2001
82
US
first off, i realize this is kind of an odd request, try and ignore that :). my boss wants me to implement a copy row feature in a datagrid. essentially, i need to gather all the info from the current row and do an insert into the sql database that has all that info. i know that i can grab the values of the labels that are in each itemtemplate, but the problem is, I have two columns that display a text value where a id field is stored in that database. for instance, i have budget category description showing in the column in the datagrid, but the budget id is stored in the table (the description is being pulled from another table). is there a sql copy row function or something akin to that? thanks!
 
something like
"INSERT INTO myTable SELECT * FROM myTable WHERE id='100'"

--------------------------
"two wrongs don't make a right, but three lefts do" - the unknown sage
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top