What happened to my VS2005 toolbox icons?
For some reason my Visual Studio 2005 icons decided to all turn into the same icon and then randomly change between cogs/notpads etc.
The fix was to right-click on the Toolbox panel and select "Restet Toolbox".
Posted: 9. January 2007 15:34 by cutty
Categories: ASP.Net Coding Hints and Tips
Tags: vs2005, toolbox
Putting a DataGridView cell into Edit Mode
Spent quite a bit of time trying to find out how to do this. When a user wants to add a new value to a DataGridView I have an Add New button.
This adds the new row, but then I want the only cell in the row to be initially set to edit mode. Eventually found the code to do this:
grdData.Rows(LastRow).Cells.Item(0).Selected = True
grdData.BeginEdit(True)
This first selects the cell to edit then forces it to edit.
Posted: 31. October 2006 15:37 by cutty
Categories: ASP.Net Coding Hints and Tips
Tags: datagridview, cell, edit mode