Tolong di konvert ke VB.NET
karena hampir sama
SqlDataAdapater ad = new SqlDataAdapter(Query,ConDB);
DataSet ds = new DataSet();
ad.fill(ds);
DataGrid1.DataSource = ds.DefaultView();
Semoga membantu
--- Adi Santoso <[EMAIL PROTECTED]> wrote:
>
> dear all,
>
> Nanya nech, kalo mau menampilkan di datagrid gimana
> yach...?, aku coba kayak di VB kok nggak bisa, ato
> ada yang ngasih contoh program menampilkan data di
> table pake .Net.
>
>
>
> terima kasih ,
>
>
>
>
>
> Dim Con As New ADODB.Connection
>
> Dim Rs As New ADODB.Recordset
>
> Con.Open("Provider=Microsoft.Jet.OLEDB.4.0;Data
> Source= " & server.mappath("/db/northwind.mdb" )
>
> Rs.Open("Select * from cuscomersr ", Con,
> ADODB.CursorTypeEnum.adOpenDynamic,
> ADODB.LockTypeEnum.adLockOptimistic)
>
>
>
____________________________________________________
Start your day with Yahoo! - make it your home page
http://www.yahoo.com/r/hs
------------------------ Yahoo! Groups Sponsor --------------------~-->
<font face=arial size=-1><a
href="http://us.ard.yahoo.com/SIG=12hcda933/M=362329.6886308.7839368.1510227/D=groups/S=1705115364:TM/Y=YAHOO/EXP=1123156352/A=2894321/R=0/SIG=11dvsfulr/*http://youthnoise.com/page.php?page_id=1992
">Fair play? Video games influencing politics. Click and talk back!</a>.</font>
--------------------------------------------------------------------~->
Untuk keluar dari millis ini, kirim email kosong ke:
[EMAIL PROTECTED]
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/Programmer-VB/
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/