Re: Modify a Binding Source

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



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: 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)
  • Re: Optimizing for speed
    ... The query itself is fast, it's actually the loop that reads all the records ... 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)