CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 5 of 5

Threaded View

  1. #3
    Join Date
    Sep 2005
    Location
    Cracow, Poland
    Posts
    345

    Re: DataGrid problems

    First, thank you for help.

    acording to 3) -> I tried to do everything as you said. I clicked into TableStyles and set one column with ReadOnly true and the other with false. (I can`t figure out what the mapping name is for exactly). Then I defined:

    Code:
     
    DataTable dt = new DataTable("Coordinates");
     
    
    and in OnLoad method:
    Code:
     dt.Columns.Add("X"); 
     
    dt.Columns.Add("Y");
     
    this.dataGrid1.DataSource = dt;
    still both columns are editable...
    Last edited by yoyosh; October 3rd, 2005 at 04:29 PM.

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