Article View: borland.public.jbuilder.java.language
Article #18940changing column order with setPreferredOrdinal()
From: Chris Fowlkes
Date: Fri, 27 Mar 1998 00:00
Date: Fri, 27 Mar 1998 00:00
65 lines
2500 bytes
2500 bytes
This is a multi-part message in MIME format.
--------------AD8528F59D2A307988E9D471
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
There is probably a simple explanation for this, but can anyone tell me
why this code:
try
{
while (DM.EndUserDataSetView.isOpen())
DM.EndUserDataSetView.close();
gridControl1.getColumnView(0).setBackground(Color.white);
System.out.println("isOpen - " + DM.EndUserDataSetView.isOpen());
DM.EndUserDataSetView.getColumn(choiceControl1.getSelectedItem()).setPreferredOrdinal(0);
System.out.println("Done - " + DM.EndUserDataSetView.isOpen());
gridControl1.setDataSet(DM.EndUserDataSetView);
gridControl1.getColumnView(0).setBackground(Color.lightGray);
}
catch(DataSetException e2)
{
System.out.println("isOpen - " + DM.EndUserDataSetView.isOpen());
System.out.println(e2.getMessage());
}
would give the result:
isOpen - false
isOpen - false
Operation cannot be performed on an open DataSet. Close the DataSet
first.
Any input is appreciated.
--
******************************************
Email address: chris@bitwiseinc.com
******************************************
--------------AD8528F59D2A307988E9D471
Content-Type: text/x-vcard; charset=us-ascii; name="vcard.vcf"
Content-Transfer-Encoding: 7bit
Content-Description: Card for Chris Fowlkes
Content-Disposition: attachment; filename="vcard.vcf"
begin: vcard
fn: Chris Fowlkes
n: Fowlkes;Chris
org: bitWise, inc.
adr: 9051 Executive Park Dr., Suite 200;;;Knoxville;TN;37923-4642;United States
email;internet: chris@bitwiseinc.com
title: Software Engineer
tel;work: (423) 292-1000
tel;fax: (423) 292-1001
x-mozilla-cpt: ;0
x-mozilla-html: FALSE
version: 2.1
end: vcard
--------------AD8528F59D2A307988E9D471--
Technical Details
Message-ID:
<351BF983.7879778C@bitwiseinc.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f74b3,67ec55e9482ae8ad,start X-Google-Attributes: gidf74b3,public From: Chris Fowlkes <chris@bitwiseinc.com> Subject: changing column order with setPreferredOrdinal() Date: 1998/03/27 Message-ID: <351BF983.7879778C@bitwiseinc.com> X-Deja-AN: 338345335 Content-Type: multipart/mixed; boundary="------------AD8528F59D2A307988E9D471" Organization: Another Netscape Collabra Server User Mime-Version: 1.0 Newsgroups: borland.public.jbuilder.java.language