Questions tagged [defaultview]

26 questions
0
votes
1 answer

Remove (both) equal entries from DataTable

I want to remove equal entries from DataTable. I tried DefaultView, but it only removes the equals and not all entries which including them. DataView view = table1.DefaultView; DataTable tbl = view.ToTable(); return tbl;
Nick S.
  • 11
  • 3
0
votes
1 answer

DefaultView.RowFilter throws Format Exception with different DateTime formats

I must have a culture which has date format like this dd.mm.yyyy , but when i forward it to row filter like this: myTable.DefaultView.RowFilter="opened_on=#"+datetimepicker1.value.ToShortDateString()+"#" It says that input string is not in valid…
mikisa
  • 3
  • 3
0
votes
0 answers

CrystalReports add data from dataview

Hello i am trying to make a report with crystal reports and i want to add a list of my object, i made an object with inherited DataRow, then i do a list of DataRows but i cannot convert it, how i can handle it? pdta.Columns.Remove("client_id"); …
Dokman
  • 43
  • 6
0
votes
2 answers

Sorting datatable by two columns with one column asc and the other one desc c#

I have multiple columns in datatable like this: COL1 COL2 COL3 aaa 5 bla bbb 8 blablabla ccc 11 blabla ddd 9 bl eee 6 blabl I'm trying to sort this datatable by COL1 asc and by COL2 desc…
tdog
  • 482
  • 3
  • 17
0
votes
0 answers

jquery search function, cannot read property 'defaultView'

I need search through an API. Now I'm stuck with the search part. movieArray = array with our API apiTekst = the div where the API is going to be inside. soeg = search-field $("#apiTekst").ready(function(){ $("#soeg").keyup(function(){ var…
K. Jeager
  • 1
  • 2
0
votes
1 answer

How to automatically load a second subview using ui-router and javascript?

I have a SPA loading the following scheme of views: Main Page > View > Subview > Sub-Subview. The main page loads View with main navigation. The Subview shows the states containing a different list of items according to the chosen link in the main…
0
votes
1 answer

Add DataAccess Query Results to View in For Cycle

I got a function to which I provide an ID, which, in turn, returns a collection of results. From these, I get yet another set of results, that I display in a datagrid. With the code below I get the results from the Last Node that has Notes. private…
Rui Mendes
  • 21
  • 1
  • 4
0
votes
1 answer

Is this a threading issue? Binding results of backgroundWorker to WPF DataGrid causes hang

I cannot figure out why this is happening. Binding the DataGrid to a DataTable.DefaultView is causing the application to hang. I want to display the contents of a CSV file that has been parsed and placed in a DataTable. This approach using the…
Tim
  • 8,669
  • 31
  • 105
  • 183
0
votes
1 answer

MS Dynamics-CRM How can I find GUID of the existing view by "Display Name" using JS?

I have category 1, category 2, and category 3. Cat1 is parent of cat2. Cat2 is parent of cat3. View for every category filtered by parent. Problem: category 3 doesn't get filtered if cat2 is not specified when cat1 selected. Need: in addition to…
Alexey
  • 47
  • 1
  • 11
-1
votes
2 answers

dynamic string C# .ToTable(true, "Dynamic String Here");

I am building a table on the fly in C#. This table may or may not contain certain columns. I need a row made up of the distinct values from a raw table. (i.e. Agent Name, Manager Name etc). I use: var DistinctTable =…
-2
votes
1 answer

DefaultView in .NET

I want to know what the 2 following statements do var dvOrder = ds.Tables[0].DefaultView; gridTable.DefaultView.RowFilter = "CompanyName < 'I'"; Could you please elaborate.
1
2