The text of this article is not in this database — only its details are. Read it on the old site: An editable GridView Control in VB.NET
4 Comments
Join the conversation! Your thoughts help the community grow.
Sign in to leave a comment.
The text of this article is not in this database — only its details are. Read it on the old site: An editable GridView Control in VB.NET
Join the conversation! Your thoughts help the community grow.
Sign in to leave a comment.
Sushant NigamPosted Jan 18, 2011, 4:16 AM
thank u sir
Karl AngeleditedPosted Jan 16, 2009, 12:11 AMEdited Jan 16, 2009, 12:16 AM
Thanks Mike for a great use of the ListView object. I'm bit of a n00b to VB 08 but I've altered your code to allow the first line to be edited. The next stage is to allow a combo-box bound to a DB to appear in column 0. I'm happy to share the changed code, but not sure how to upload to this site :( I changed the populate cell public procedure to allow rowNum > -1 like the columns and checked that the total number of items in the ListView was greater than 0. This stops the out-of-range error you would have got just editing the rowNum to -1. The start of it now looks like this: Sub PopulateCell(ByVal rowNum As Integer, ByVal colNum As Integer) If rowNum > -1 And colNum > -1 And listView1.Items.Count > 0 Then
swathi konduruPosted Feb 8, 2007, 11:20 AM
hii!!(in VB.NET) can i update at a time multiple records in database using gridview.???