473,397 Members | 2,028 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,397 software developers and data experts.

Oder By

I allowed C# to automatically create databindings for me as code below shows.
How can I set the orderby so the column i want is sorted? I have a combobox
in a datagridview and I need to sort the data shown in it by the commandtype
and not the primary key.

thanks

// TODO: This line of code loads data into the
'fixed1DataSet.Commands' table. You can move, or remove it, as needed.
this.commandsTableAdapter.Fill(this.fixed1DataSet. Commands);
Feb 13 '07 #1
2 1434
I got it. I chaged the underlying SQL statement

"Chris" wrote:
I allowed C# to automatically create databindings for me as code below shows.
How can I set the orderby so the column i want is sorted? I have a combobox
in a datagridview and I need to sort the data shown in it by the commandtype
and not the primary key.

thanks

// TODO: This line of code loads data into the
'fixed1DataSet.Commands' table. You can move, or remove it, as needed.
this.commandsTableAdapter.Fill(this.fixed1DataSet. Commands);
Feb 13 '07 #2
Do it in your SQL?
Peter

"Chris" <Ch***@discussions.microsoft.comwrote in message
news:57**********************************@microsof t.com...
>I allowed C# to automatically create databindings for me as code below
shows.
How can I set the orderby so the column i want is sorted? I have a
combobox
in a datagridview and I need to sort the data shown in it by the
commandtype
and not the primary key.

thanks

// TODO: This line of code loads data into the
'fixed1DataSet.Commands' table. You can move, or remove it, as needed.
this.commandsTableAdapter.Fill(this.fixed1DataSet. Commands);

Feb 13 '07 #3

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

Similar topics

3
by: frizzle | last post by:
Hi Group, On my site, i have a number of employees in the DB, each of the employees can work together with max 3 colleagues. The table 'employees'looks like the following: 'id' INT(5) ,...
6
by: Andrew Banks | last post by:
I'm trying to order a recordset randomly. I've tried the following ORDER BY Rnd(ProdID) - ProdID is my primary key I've read that this will be random but will always return the same random...
2
by: Klaus Baumgart | last post by:
Hallo, From the source xml-file I have to generate new ID-Nummer in the targetfile. Please look at the targetfile. Thanks for help Klaus Baumgart
1
by: André | last post by:
Hallo, erstmal vorweg: Ich bin noch ziemlicher Newbee also bitte nicht schlachten! Es geht darum den Inhalt eines bestimmten Verzeichnisses einer SIM-Karte zu interpretieren. Dazu hab ich den...
1
by: Ingo Kollesch | last post by:
Moin, gibt es eine DB2 Funktion/Abfrage oder View um die User/User Group abzufragen? Ich möchte in meiner Anwendung abfragen ob der eingeloggte User bestimmte Rechte auf der Datenbank hat. Kann...
2
by: Chris Cobb | last post by:
I have a table that currently contains 718000 rows. I wish to add a column to the table. Adding this column anywhere other than the end of the table requires exporting data, a drop and recreate,...
6
by: Daniel Schüle | last post by:
Hallo NG ich kann mich errinern, dass bei C++ int f = {}; ausreichend ist, um alle 10 Elemente mit 0 zu initialisieren in C *müsste* es int f = {0}; heissen
1
by: Daniel Walzenbach | last post by:
Hallo, ich bereite mich gerade auf die Prüfung 070-305 vor (langfristig MCSD) und suche noch Leute, die gerne mitlernen möchten. Ist einfach lustiger wenn mehrere Personen zusammenkommen....
1
by: Marvin Massih | last post by:
Hallo, ich möchte aus einem Webservice bzw. einer ASP.NET-Projekt einen Crystal-Report drucken. Ich brauche keinen Crystal-Viewer oder ähnlichen Käse. Doch bereits der Aufruf von ...
6
by: Thomas | last post by:
hello, what is the better solution if it is possible to choose? a timer or sleep? which one is better for min resources? Thomas
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.