Re: Modify a Binding Source

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



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?





.



Relevant Pages

  • Re: Modify a Binding Source
    ... I am using a commercial grid to display my data. ... From db1DataSet, I can see the following by intellicense; ...
    (microsoft.public.dotnet.framework.adonet)
  • Re: Optimizing for speed
    ... > Simple query which returns ... I'd like to inmediately display records and allow user ... >> I'd consider is how much data am I loading in the grid vs. what the user ... >> in others where this isn't the bottleneck the differences aren't worth ...
    (microsoft.public.dotnet.framework.compactframework)
  • Re: Label will not display NEW records frm another (bound) form.
    ... The GRID form was written in Visual Basic. ... that person’s name in a label control of a second unbound form. ... Its purpose is to display the results ... past Registrations. ...
    (microsoft.public.access.formscoding)
  • Graphics - need to draw to the screen and then erase it
    ... and then use lines to create a grid. ... I then draw sine-waves ontop of the ... So the user presses on the display with the stylus and a line is ...
    (microsoft.public.windowsce.embedded.vc)
  • Re: Label will not display NEW records frm another (bound) form.
    ... The GRID form was written in Visual Basic. ... that person’s name in a label control of a second unbound form. ... Its purpose is to display the results ... past Registrations. ...
    (microsoft.public.access.formscoding)