Tech
Forums
Jobs
Books
Events
Interviews
Live
More
Learn
Training
Career
Members
Videos
News
Blogs
Post
An Article
A Blog
A Video
An Ebook
An Interview Question
Register
Login
1
Reply
Editing rows in a Datagrid
rcoob
Aug 6 2004 12:05 PM
1.9k
Reply
I have a datagrid that I am using to track inventory. The datagrid pulls from a Access database query and populates it. I want to have a hyperlink at the end of each row that allows you to edit the information for that particular row and saves the changes to the database (reassign a computer to a different user for instance). I don't care if the hyperlink opens up a new web form or if I can do it from the original datagrid. Any help would be greatly appreciated. Thanks. Sub Page_Load If Not Page.IsPostBack Then DBConnection = New OleDbConnection( _ "Provider=Microsoft.Jet.OLEDB.4.0;" & _ "Data Source=OMLET.mdb") DBConnection.Open() SQLString = "SELECT * FROM qry_test" DBCommand = New OleDbCommand(SQLString, DBConnection) DBReader = DBCommand.ExecuteReader() DataGridDisplay.DataSource = DBReader DataGridDisplay.DataBind() DBReader.Close() DBConnection.Close() End If
Upload Source Code
Select only zip and rar file.
Post
Reset
Cancel
Answers (
1
)
Next Recommended Forum
Panel Control compatibility with Netscape Browser
Connection Pooling Problem