|
I bind a datagridview with a datatable. Datatable has rows with value. i can edit or type some values in the cell of my datagridview before binding with datatable. After binding, i can't edit the values in all cells. Thank a lot.
|
| axiomkid Monday, September 14, 2009 4:38 AM |
Hi, Change DataGridViewColumn Readyonly property to false.then only you can able to edit the column. Best Regards,
C.Gnanadurai
-----------------------
Please mark the post as answer if it is helpfull to you - Marked As Answer byaxiomkid Friday, September 18, 2009 6:47 AM
-
|
| Gnanadurai Friday, September 18, 2009 5:24 AM |
Hi, If ReadOnly property of DataGridView is set to true, all the cells in that DataGridView cannot be edited. If you only want some of the columns to be read only, then set these column's ReadOnly property to true. Sincerely, Kira Qian
Please remember to mark the replies as answers if they help and unmark them if they provide no help.
Welcome to the All-In-One Code Framework!- Marked As Answer byaxiomkid Friday, September 18, 2009 6:47 AM
-
|
| Kira Qian Friday, September 18, 2009 6:26 AM |
Hi, Post your code for understanding.. Best Regards,
C.Gnanadurai
-----------------------
Please mark the post as answer if it is helpfull to you |
| Gnanadurai Monday, September 14, 2009 2:15 PM |
If you are experiencing the problem with just some columns, it could be that the columns do not represent actual fields in an underlying database table. For example, calculated fields cannot be edited because they cannot be saved anywhere in the database (they are calculated every time the Select statement is run). There could be other reasons, but as stated by Gnanadurai, it is best if you post some code. MCP |
| webJose Monday, September 14, 2009 3:35 PM |
Hi axiomkid, If none of the cell in DataGridView can be edited, the proper reason is the ReadOnly property of DataGridView has been set to true. Could you please check it in your code? If the ReadOnly property of DataGridView hasn't been set to true, you can check if that property of column has been set to true. Please inform me the test result. If you have any more question, please feel free to tell me. Sincerely, Kira Qian
Please remember to mark the replies as answers if they help and unmark them if they provide no help.
Welcome to the All-In-One Code Framework! |
| Kira Qian Wednesday, September 16, 2009 6:32 AM |
Thank Kira Qian for reply, The ReadOnly property of the DataGridView and DataGridViewColumn has been already set to true. |
| axiomkid Friday, September 18, 2009 5:06 AM |
Hi, Change DataGridViewColumn Readyonly property to false.then only you can able to edit the column. Best Regards,
C.Gnanadurai
-----------------------
Please mark the post as answer if it is helpfull to you - Marked As Answer byaxiomkid Friday, September 18, 2009 6:47 AM
-
|
| Gnanadurai Friday, September 18, 2009 5:24 AM |
Hi, If ReadOnly property of DataGridView is set to true, all the cells in that DataGridView cannot be edited. If you only want some of the columns to be read only, then set these column's ReadOnly property to true. Sincerely, Kira Qian
Please remember to mark the replies as answers if they help and unmark them if they provide no help.
Welcome to the All-In-One Code Framework!- Marked As Answer byaxiomkid Friday, September 18, 2009 6:47 AM
-
|
| Kira Qian Friday, September 18, 2009 6:26 AM |