CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Apr 2002
    Posts
    41

    DataGrid, don't want the last row (new record), how to remove

    I have a datagrid that is bound to a table.

    I want the data displayed and allow the user to select a record. But I don't want the blank last row displayed. I don't want them to be able to enter new data in this datagrid. This one is for selecting a record only.

    Thanks for any help

  2. #2
    Join Date
    Sep 2002
    Location
    Germany
    Posts
    4

    dataview

    Dim dt as DataTable
    Dim dv as DataView

    dt=...

    dv = New DataView(dt)
    dv.AllowNew = False

    dg.DataSource = dv

    i hope, it helps you
    I know that I don't know anything

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured