Click here to Skip to main content
15,880,967 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
view.dtGridTax.ScrollIntoView(item);
view.dtGridTax.SelectedItem = item;


var selectedIndex = view.dtGridTax.SelectedIndex;
view.dtGridTax.CurrentCell = new DataGridCellInfo(view.dtGridTax.Items[selectedIndex], view.dtGridTax.Columns[0]);
view.dtGridTax.SelectionUnit = DataGridSelectionUnit.FullRow;
view.dtGridTax.SelectionMode = DataGridSelectionMode.Single;
view.dtGridTax.BeginEdit();
Posted
Comments
Mich1309 5-May-15 2:57am    
need help please
anil420 19-May-15 3:08am    
You can set the properties CanUserAddRows to true to allow user to add rows.DataGrid is editable by default, where each column has an edit control which lets you edit its value.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900