|
-
October 2nd, 2005, 07:34 AM
#1
DataGrid problems
I will be very thankfull if you could help me by answering my questions according DataGrid:
1. Each time I fill all fields in last row, a new row is being created (automatically). How to turn this feature off? (I would like the user who wants to add new row, to press a button "new" located outside DataGrid, to add a new row ).
2. I want to allow the user to edit DataGrid (ReadOnly == false). How to get a data from the row, that has just been edited?
3. I would like to make 2 columns - one ReadOnly == false, second ReadOnly == true. I tried in such way:
Code:
DataTable dt = new DataTable("Coordinates");
this.dgPnt.DataSource = dt;
dt.Columns.Add("X");
dt.Columns[0].ReadOnly = true;
but it doesn`t seem to work.
thank you in advance for any help
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|