Visual studio/Sourcesafe: Remove sourcecontrol bindings
If connected to sourcecontrol:
Open solution in vs,
select File - Change sourcecontrol - Unbind.
Exit Vs.
Optionally copy files and folders to a new location.
Find all files ending with *.scc (including in subfolders) and delete them.
Delete *.vssscc (mine had only one)
Remove write-protection on files.
Now they are free from Sourcesafe source-control.
Visual Studio 2005/2008 - Open code file instead of form
In VS when doubleclicking a form.cs file, default behaviour is to open Form Designer.
In my case most often I want to get to the code itself.
To set this as default:
Right-click the file in Solution Explorer and select Open With.
In the new window change to CSharp Editor (or VB if that's your thing) in stead of CSharp Form Editor.
click Set as Default, OK and your good to go.
Next time you doubleclick a form it will default to code view.
PS. you can right-click - View Designer when you want to use that,
or click the View Designer-icon on top of Solution Explorer.
c# Infragistics ultragrid setfocus on cell
Problem: We have a form with a ultragrid displaying values.
On the form is a button to add a new row to the grid.
When clicking it we want the new row to be activated and the first cell to be selected.
In this solution the button adds a row with empty values to the datasource.
So in this solution we:
1) sort grid on column "Key" ("Key" is the name of one of our columns)
myGrid.DisplayLayout.Bands[0].Columns["Key"].SortIndicator = SortIndicator.Ascending;
2)activate the new row, with the desired cell
myGrid.Rows[0].Cells["Key"].Activate();
3) open the cell for edit
myGrid.PerformAction(UltraGridAction.EnterEditMode, false, false);
No comments :
Post a Comment