Re: Modify a Binding Source
- From: "Earl" <brikshoe@xxxxxxxxxxxxxxxxx>
- Date: Wed, 13 Dec 2006 11:18:54 -0500
Jean, if you are not familiar with the typed dataset, I do not want to make
things any more complicated for you. You really need to figure that out
first, probably with a book. However, you can easily look at and modify your
typed dataset simply by double-clicking on the dataset in the Solution
Explorer.
Another alternative might be to simply hide the columns that you do not want
to display. Use the syntax:
ds.Table1.IDColumn.ColumnMapping = MappingType.Hidden;
....
"Jean Dophin" <JeanDophin@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:7789FF75-34B9-4E77-B457-9D972D7AAC7E@xxxxxxxxxxxxxxxx
I am not too familiar with those component. Can you provide some sample on
how to do that?
Thanks in advance
"Earl" wrote:
In your dataset, create a table that only contains the FirstName and
LastName columns. Create a bindingsource for that newly-created table and
then bind the grid to that datasource.
"Jean Dophin" <JeanDophin@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:FE47CD28-BF78-4C66-8ED3-262FC16FF9C5@xxxxxxxxxxxxxxxx
I wonder if I can modify the bindingsource to dispaly specific field
from a
table rather than displaying the whole table. Here is what I am
talking
about. I am using a commercial grid to display my data. I don't have
any
problem to display the whole table to the grid. For instance, the
following
code displays a whole table to the grid.
grid1.SetDataBinding(table1BindingSource);
Now, I only want to display the FirstName and the LastName
I have the following in my form
table1BindingSource and db1DataSet
From db1DataSet, I can see the following by intellicense; my table
names
Tabl1
from intellicense I can see
Table1.FirstNameColumn and Table1.LastNameColumn;
My question, how can I use table1BindingSource and db1DataSet to
display
only the firstname and the lastname rather than the whole table?
.
- References:
- Re: Modify a Binding Source
- From: Earl
- Re: Modify a Binding Source
- Prev by Date: Re: How do I copy customers from an ODBC to an OLEDB
- Next by Date: MS Access 'already opened exclusively' error
- Previous by thread: Re: Modify a Binding Source
- Next by thread: SqlDataSource.FilteExpression "!=" does not work?
- Index(es):
Relevant Pages
|