Windows Develop Bookmark and Share   
 index > Windows Forms Data Controls and Databinding > datagridview rows editable or not
 

datagridview rows editable or not

My datagridview has to have noneditable rows except for the ones that are new.
I have set AllowUsersToAddRows true for the grid. This adds a row at the bottom and user can enter the data. I want the new rows to be editable. Also the copy and pasted rows should be editable. So I added a flag to the database . If this flag is 'Y' I want to make those rows noneditable but for the new rows I want to initially set the flag to 'N'.
In which datagridview should I set the datagridview.currentrow.Readonly=true;
I am a newbie...please help...

raayu  Monday, December 04, 2006 10:26 PM
dataGridView1.Rows[index].ReadOnly
Wang Chi  Tuesday, December 05, 2006 2:25 AM
dataGridView1.Rows[index].ReadOnly
Wang Chi  Tuesday, December 05, 2006 2:25 AM

You can use google to search for other answers

Custom Search

More Threads

• Bound controls do not copy across data to underlying data row
• DataGridViewComboBoxCell Value is not Valid
• Combo Box Tabbing issue
• datagridview: show a value instead of the one in the db
• Datagrid Update - Cell Value
• Programmatically select a row on DataGridView
• DataGridViewComboboxCell Error
• Binding CompboBox after form has loaded
• Style not being applied to datagrid
• Flushing Binding from Custom Object