Click here to Skip to main content
16,004,761 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi I added my website GridView. I added 3-column. Your name, phone, ID
I would like to add databases, read the data one by one here. How do I do this operation.
while dr.read
if databasefield = "nnnn" then
gridview1.rows.item (name). text = (here, the data in databases, write)
end if
end while
Posted

If you find a lot of examples here - Google Search - GridView example[^]
 
Share this answer
 
Comments
Dalek Dave 17-Mar-11 5:22am    
His question is not well laid out, lacks clarity.
Ankur\m/ 17-Mar-11 5:27am    
You are right. It also seems he doesn't know how to use a GridView. That's why I gave him links to study it.
You haven't stated which language, but I would presume VB.Net
You haven't said what type of Database, I will assume SQL.
You haven's said how/where hosting is.
ANd you have shown much by way of code.

I would suggest you go to Here[^] or any of the other links available.
 
Share this answer
 
Comments
vozkan58 17-Mar-11 6:22am    
Visual studio 2010 VB.NETMySQL Database Usinghi,

I just want something like the following written commands. Bottom side has written that I can not add command. Database connectivity is not important or something. GridView I just want to get the data.

Dim name As String = "Nicholas" Dim surname As String = "Ozkan"

gridview1.rows.item (0). cells (0). text = name

gridview1.rows.item (0). cells (1). text = surname

GridView column with this command but can not print. I looked pretty, but I could not find Googlede.

Yours sincerely

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900