ghost
from: Washington, DC
| Try this: Dim sConnString, objGrid sConnString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\Mysource.mdb;" Set objGrid = Server.CreateObject("AspWebSolution.DataGrid") With objGrid .Command = "SELECT Table1.NomUser, Table1.AdressUSER, Table2.Date, Table2.Operation FROM Table1, Table2 WHERE Table1.IdUSER=Table2.IdUSER" Call .ColumnCaption("Table1.NomUser","Name") Call .ColumnCaption("Table1.AdressUSER","Adress") .MasterTable = "Table1" .title = "Test" .GridStyle = "background-color:gray;" .HeaderStyle = "background-color:#666699;" .HeaderTextStyle = "color:white;font-family:verdana;font-size:8pt;" .ItemStyle = "background-color:#d2d1de;color:000000;font-family:verdana;font-size:8pt;" .AltItemStyle = "background-color:#f5f5f5;color:000000;font-family:verdana;font-size:8pt;" .FooterStyle = "font-family:verdana;font-size:8pt;" .AddRowNumbers = False .CanFilter = True 'Create a databse connection Call .CreateConnection(sConnString) 'Display the data grid .Display End With Set objGrid = Nothing P/S: Read the online manual
------------------------- Ghost |