defaultview

Get the DefaultView DataRowView from a DataRow

情到浓时终转凉″ 提交于 2019-12-10 03:45:43
问题 Here's the situation: I need to bind a WPF FixedPage against a DataRow . Bindings don't work against DataRows ; they work against DataRowViews . I need to do this in the most generic way possible, as I know nothing about and have no control over what is in the DataRow . What I need is to be able to get a DataRowView for a given DataRow . I can't use the Find() method on the DefaultView because that takes a key, and there is no guarantee the table will have a primary key set. Does anybody have

How can I set the default double click action in Visual Studio?

怎甘沉沦 提交于 2019-12-05 08:23:53
问题 How can I make Visual Studio default to View Source when you double-click the Form1.cs . I prefer to make View Source the default of double-click than View Designer. 回答1: Right click the file in the Solution Explorer, choose "Open With...", select the CSharp Editor, and click the "Set as Default" button. 回答2: Right click a form file and click "Open With...". Pick your desired designer to open as default (in this case "CSharp Editor" or "Microsoft Visual Basic Editor") and click "Set as