473,225 Members | 1,316 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,225 software developers and data experts.

DefaultView and sort

Hi,
I have a dataset 'dst' having table 'dt' which is bound to grid, I have
set the sorting order for this by using following code.

dst.DefaultView.Sort = "id, text ASC";

This does not work, however if I set the default view using the follwing
code,
dt.DefaultView.Sort = "id, text ASC";
sort works. Any Reason?

--
Message posted via http://www.dotnetmonster.com
Jul 21 '05 #1
1 3620
Manjunath,

The dataset has no defaultview (it has a defaultviewmanager), therefore how
did you realize this withouth getting an error?

Cor
Jul 21 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: sandman | last post by:
I'm trying to filter the data as I load a dataset, so I set the RowFilter property of the DataTable's DefaultView. But the dataset still contains all of the records. Is the row filter (and...
0
by: James | last post by:
I have a DataSet with two tables and two datagrids with a Parent/Child Relationship. While that works fine, setting a Rowfilter to the Parent on the parent table defaultview does not. If I use a...
0
by: Ian Bennett via .NET 247 | last post by:
Is there any way a datatable, that is populated with te colums Hdate, State1, State2, State3, etc can be filtered with an OR condition? The dt is populated by selecting the colums Hdate and State1,...
0
by: Paul | last post by:
Hi I have a problem with the DataGrid Datasource. The issue is this, setting the grid DataSource to Table1, which is done when the page loads and then changing the datasource to a different...
6
by: astro | last post by:
I am trying to setup a filter for the dataset on a form as follows: Me.Ds1.Tables("company").DefaultView.RowFilter = "city='New York'" But nothing happens when this code is executed. The same...
1
by: Manjunath sp via DotNetMonster.com | last post by:
Hi, I have a dataset 'dst' having table 'dt' which is bound to grid, I have set the sorting order for this by using following code. dst.DefaultView.Sort = "id, text ASC"; This does not work,...
0
by: Toufik | last post by:
Hi, I've a strange problem, when I execute the code below I've the error "An unhandled exception of type 'System.NullReferenceException' occurred in system.data.dll Additional information: Object...
1
by: Ryan Liu | last post by:
Hi, I thought the following code is tedious but pretty safe, unexpected this.dataTable.DefaultView itself throw an System.NullReferenceException? if(this.dataTable!= null &&...
2
by: einsson | last post by:
I face a problem, please help. Error I hit when there are three combobox. Please refer the code with italic characters. this.comboBox1.DataSource = this.dataSet11.Tables;...
0
by: veera ravala | last post by:
ServiceNow is a powerful cloud-based platform that offers a wide range of services to help organizations manage their workflows, operations, and IT services more efficiently. At its core, ServiceNow...
0
by: VivesProcSPL | last post by:
Obviously, one of the original purposes of SQL is to make data query processing easy. The language uses many English-like terms and syntax in an effort to make it easy to learn, particularly for...
3
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 3 Jan 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). For other local times, please check World Time Buddy In...
0
by: mar23 | last post by:
Here's the situation. I have a form called frmDiceInventory with subform called subfrmDice. The subform's control source is linked to a query called qryDiceInventory. I've been trying to pick up the...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 7 Feb 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:30 (7.30PM). In this month's session, the creator of the excellent VBE...
0
by: fareedcanada | last post by:
Hello I am trying to split number on their count. suppose i have 121314151617 (12cnt) then number should be split like 12,13,14,15,16,17 and if 11314151617 (11cnt) then should be split like...
0
Git
by: egorbl4 | last post by:
Скачал я git, хотел начать настройку, а там вылезло вот это Что это? Что мне с этим делать? ...
1
by: davi5007 | last post by:
Hi, Basically, I am trying to automate a field named TraceabilityNo into a web page from an access form. I've got the serial held in the variable strSearchString. How can I get this into the...
0
by: MeoLessi9 | last post by:
I have VirtualBox installed on Windows 11 and now I would like to install Kali on a virtual machine. However, on the official website, I see two options: "Installer images" and "Virtual machines"....

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.