How do I custom view using AccessDataSource?

Last post 05-31-2007 4:21 AM by Nai-Dong Jin - MSFT. 1 replies.

Sort Posts:

  • How do I custom view using AccessDataSource?

    05-29-2007, 9:10 PM
    • Loading...
    • qteks200
    • Joined on 05-29-2007, 11:14 PM
    • Posts 5

    Hello and sorry for weak English!

    I am new in Asp.net and I need you help to solve my problem: I create an access database and AccessDataSource the will select a special record using query string. There is no problem up to here, but I cannot I mean I do not know how to customize the view of the items of selected record. I know I can preview the record with datagrid, formview, datalist and ... but I don't want to preview in grid and ... . I have my own table with own design, I want to place an Item in top of the page and on in down of the page, but I don not know what code I should write at every where that I want to preview the item that I need!(I don't know how to preview the selected record by AccessDataSource outside ASP.Net data components like datagird ....)! Please help me

  • Re: How do I custom view using AccessDataSource?

    05-31-2007, 4:21 AM
    Answer

    Hi,

    You can use DataView to retrieve the set of data(such as AccessDataSource).eg:

    DataSourceSelectArguments ar = new DataSourceSelectArguments();
    DataView dv = (DataView)AccessDataSource1.Select(ar);
    this.TextBox1.Text = dv.Table.Rows[RowInt][ColumnInt].ToString();

     In this way you can retrieve the value of any row any column manually. Also, you can place any item anywhere.

    Thanks.

    Sincerely,
    Michael Jin.
    Microsoft Online Community Support

Page 1 of 1 (2 items)
Microsoft Communities
Page view counter