Results 1 to 5 of 5

Thread: datagrid

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Sep 2002
    Posts
    471

    datagrid

    How to make datagrid all columns uneditable? thanks

  2. #2
    Lively Member spdracr's Avatar
    Join Date
    Oct 2003
    Location
    Kansas
    Posts
    115
    Set the DataGrid's ReadOnly property to True.

    Hope that helps

  3. #3

    Thread Starter
    Hyperactive Member
    Join Date
    Sep 2002
    Posts
    471
    yes, that is what I did. Thanks.

    Now I have another question. Initially my grid is empty and ReadOnly. now I want to click a button to add a new row. I set ReadOnly to false. but I still do not see the empty row with *.
    Do you have any idea?

  4. #4
    Lively Member spdracr's Avatar
    Join Date
    Oct 2003
    Location
    Kansas
    Posts
    115
    i'm really not sure on this, but it is what i think will work... i have not done it.

    add the new row to your datatable that the datagrid is bound to and i belive the grid will update accordingly by itself.

  5. #5
    Member
    Join Date
    Oct 2000
    Location
    Asheville, nc
    Posts
    53
    You can find here a lot of good stuff about datagrid and other controls:
    http://www.syncfusion.com/FAQ/WinForms/
    Victor

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