🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: free.it.visual-basic
Article #1858

Aiuto [WebForm (VB.NET)]

#1858
From: M
Date: Mon, 12 Jan 2004 18:53
28 lines
2141 bytes
Ciao a tutti, rinnovo una richiesta di aiuto postata 3 giorni fa...
Data una DATAGRID (nella WebForm) e il codice seguente:

Private Sub RiempiGrigliaMarca()

cn.Open()

sql = "SELECT Marca from tblDati GROUP by Marca ORDER by Marca"

cmd = New SqlClient.SqlCommand(sql, cn)

Dim dr As SqlDataReader = cmd.ExecuteReader(CommandBehavior.CloseConnection)

grdMarca.DataSource = dr

grdMarca.DataBind()

dr.Close()

End Sub


Qualcuno � in grado di dirmi se (e come) DA CODICE (VB) posso impostare
nella colonna che viene generata (Marca) la proprieta Button, ma soprattutto
far si che la propriet� DataTextField peschi i valori dal DataReader?
Premessa: la connessione al datadase SQL l'ho impostata direttamente da
codice.
Grazie a chiunque sia in grado di aiutarmi.
Technical Details
Message-ID: <XsydneHAE_2AcJ_dRVn2hg@giganews.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.frii.net!newsfeed.frii.net!140.99.99.194.MISMATCH!newsfeed1.easynews.com!easynews.com!easynews!small1.nntp.aus1.giganews.com!border1.nntp.aus1.giganews.com!intern1.nntp.aus1.giganews.com!nntp.giganews.com!news.giganews.com.POSTED!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ITALIAN,ASCII
X-Google-Thread: f94ee,c7ecb04113e7966e,start
X-Google-Attributes: gidf94ee,public
X-Google-ArrivalTime: 2004-01-12 10:53:19 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.frii.net!newsfeed.frii.net!140.99.99.194.MISMATCH!newsfeed1.easynews.com!easynews.com!easynews!small1.nntp.aus1.giganews.com!border1.nntp.aus1.giganews.com!intern1.nntp.aus1.giganews.com!nntp.giganews.com!news.giganews.com.POSTED!not-for-mail
NNTP-Posting-Date: Mon, 12 Jan 2004 12:53:17 -0600
From: "M@rko" <wilanderTOGLI@MAIUSCOLOtin.it>
Newsgroups: free.it.visual-basic
Subject: Aiuto [WebForm (VB.NET)]
Date: Mon, 12 Jan 2004 19:53:15 +0100
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
Message-ID: <XsydneHAE_2AcJ_dRVn2hg@giganews.com>
Lines: 30
X-Trace: sv3-6tVfochjt3NgEdK3Ni/+NoecF0O2j7dQLhoJ+wQ3fvtFKKoEpXPjkzh+3/LDVDIxS9bNxVO09qDJVRp!c/MZAPIQpn2s6wGshswgQmhjYBVhJm31hQbOblGlPqhVrcEiM72CwunyhTb6
X-Complaints-To: abuse@giganews.com
X-DMCA-Notifications: http://www.giganews.com/info/dmca.html
X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers
X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly
X-Postfilter: 1.1