binding/formatting/parsing grid cell values to a DataTable

G

Guest

Hi,
i'm missing my question sent June 7th, so here it is again. I have a DataSet
(ds) a BindingSource (bs) and an [infragistic] grid (gr). When i setup these
three in the following manner: bs.DataSource = ds; bs.DataMember =
"some_table_name"; gr.DataSource = bs; everything works fine - the table rows
are displayed in the grid. Now i want to format the values before they are
shown in the grid and parse them correpondingly before they are pushed back
to the DataSet after editing. All hints i found say: use the
Binding.Parse/Format events. But where can i find the respective Binding
objects in the former scenario? The bs.CurrencyManager.Bindings collection is
empty.
Thanks in advance
Peter
 
G

Guest

Hi,
i suspect to overlook something very essential. I consider it to be an every
day problem to display data in grids in a customized way - let's say just
appending a measurement unit [mph, miles] to numbers. My question is how to
achieve that for a DataGrid. For simple controls i know that using
Binding.Format/Parse is the answer.
Any hints are welcome
Peter


Cor Ligthert said:
Peter,

A complete sample of binding evens with that always being trouble the
datetime
http://www.vb-tips.com/dbpages.aspx?ID=c4832a2a-2b95-4ded-93d9-4deb7fa4a0b8

Cor

EnerPeter said:
Hi,
i'm missing my question sent June 7th, so here it is again. I have a
DataSet
(ds) a BindingSource (bs) and an [infragistic] grid (gr). When i setup
these
three in the following manner: bs.DataSource = ds; bs.DataMember =
"some_table_name"; gr.DataSource = bs; everything works fine - the table
rows
are displayed in the grid. Now i want to format the values before they are
shown in the grid and parse them correpondingly before they are pushed
back
to the DataSet after editing. All hints i found say: use the
Binding.Parse/Format events. But where can i find the respective Binding
objects in the former scenario? The bs.CurrencyManager.Bindings collection
is
empty.
Thanks in advance
Peter
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top