Re: Modify a Binding Source
- From: "Earl" <brikshoe@xxxxxxxxxxxxxxxxx>
- Date: Tue, 12 Dec 2006 21:04:50 -0500
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?
.
- Prev by Date: Re: ms sql server 2005 not seen in server explorer - can't see any SQL Servers
- Next by Date: Re: I have two questions about the TableAdapter Configuration Wizard
- Previous by thread: Typed Datasets with ComboBox
- Next by thread: Re: Modify a Binding Source
- Index(es):
Relevant Pages
|