Questions tagged [defaultview]

26 questions
54
votes
3 answers

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

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.
Hao
  • 8,047
  • 18
  • 63
  • 92
21
votes
2 answers

How can I reset table.DefaultView.RowFilter?

The code below works fine and filters the rows correctly but how would I restore the table to its original state? DataTable table = this.dataGridView1.DataSource as DataTable; table.DefaultView.RowFilter = comboBox.Text + " LIKE '%" + strName +…
James May
8
votes
2 answers

Get the DefaultView DataRowView from a DataRow

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…
user1228
5
votes
1 answer

org.openqa.selenium.WebDriverException: unknown error: Cannot read property 'defaultView' of undefined

While executing automation scrits written n selenium using cucumber frame work iam getting the below exception org.openqa.selenium.WebDriverException: unknown error: Cannot read property 'defaultView' of undefined Previously befor spring 19…
3
votes
3 answers

Querying inside a Dataset C#

I have an ADO.NET dataset which is set by a certain query, say SELECT ID,USER,PRODUCT,COUNT FROM PRODUCTION Without using a where clause I need to derive some results from the dataset. Say I want to get the User and Product count of the user who…
JCTLK
  • 2,145
  • 8
  • 29
  • 37
3
votes
3 answers

Datagridview row filter

I am using DataView and RowFilter. Only one column is filtering, but I want all columns to be filtered. I would like to search for a word in the text box to make this filter. DataView dv = dt.DefaultView; if (e.KeyChar == (char)13) { …
Simkyujin
  • 115
  • 2
  • 2
  • 8
2
votes
1 answer

Angular.js: How can I return a content without view? Returning atom feed to users

I plan to generate an Atom feed inside my AngularJS controller. A want to generate a view, but not on the server-side, because I want to replace the URI with a new AngularJS route. Now I know how to write XML with JavaScript, but I have no idea…
ccoroom
  • 699
  • 9
  • 23
1
vote
2 answers

DataTable Filtering

I have a method that gets a list of numbers and filters my datatable according to it. I use this code: string MyQuery = CreateQueryMethod(MyNumbersList); MyDataTable.DefaultView.RowFilter = MyQuery; But if I get an empty list, MyQuery is just: "" …
Johnny
  • 21
  • 1
  • 2
1
vote
1 answer

After changing a views default with hook_views_default_views_alter() how can I make it active programmatically?

I have a view. I altered it with hook_views_default_views_alter(). To make my changed become active I need to go to the UI and revert it back to the altered default. How can I make the new default active programmatically instead? In other words: How…
user3563097
  • 179
  • 8
1
vote
2 answers

How to sort a column in dataset VB.NET having multiple sort conditions

I have a dataset in which there is a column contains various string type values like below: Aircraft Crime Package Total Apartments DIC - Personnel Now the requirement is that after applying sorting logic on this colum if there is a "Package Total" …
Himanshu
  • 2,251
  • 4
  • 20
  • 25
0
votes
2 answers

Find DataGrid Column and Row Index based on cell value of column

I need to do the following with a DataGrid. E.g. Col A Col B 1 A 2 B 3 C 4 D For instance where Col A = 3. I then want to change the background cell.Background = some color where row 3…
user1135183
0
votes
2 answers

AllItems listview web page

I am trying to create a custom default view for a list. I made a copy of my list's AllItems.aspx page, and renamed it, and inserted a CEWP onto the page, as I would like to use jQuery to display a color in a column field similar to…
jg100309
  • 311
  • 2
  • 7
  • 20
0
votes
1 answer

Filtering a dgv using its Datasource(dt).DefaultView.RowFilter with a concatenated string

For some reason when I apply my dgvBarcodes.Datasource.Defaultview.Rowfilter = strDGVBarcodesFilter it's looking for (column "Test"), instead of filtering the rows on column "LongDescription=Test". This is unexpected behaviour. How do I get the…
0
votes
1 answer

How can I change the View of a SharePoint Online folder programmatically?

I have a powershell script that creates Folders in SharePoint online. I'm using Add-PnPFolder to do so. By default the new folder view is sorted by Name. I wish to change the default view so that it is sorted by the field Created. Manually this can…
henk
  • 21
  • 2
0
votes
2 answers

StackOverflowException is caused by a default mvc view

I created a simple create view for a model by mvc's automated way to show to a coleague. Now, although i do not really use that, i can't see where a recursion is caused since i just said to mvc to create it for a model where all the fields are made…
MrNutbutters
  • 17
  • 1
  • 4
1
2