DataGridView
am 09.10.2007 19:43:44 von Rich
I'm using a DataGridView to display unbound data, and it works great.
However, I need to display descriptive data from a related table (one
to many). If possible, I want to put the lookup table inside a
column.
Any thoughts on how to approach this?
Thanks
Re: DataGridView
am 09.10.2007 23:27:57 von NoSpamMgbworld
To get the data configured, you can do this with a DataSet with multiple
tables. This does not work easily with the DataSource drag and drop
methodology, however. Dino Esposito has some of the best MSDN articles on
working with data binding, if you go this route.
You can also customize the output in the Row databinding event and put
anything you want out. I would still consider grabbing both tables of data,
or at least grab the related table and use RowFilter to limit the output of
each row's related records.
--
Gregory A. Beamer
MVP, MCP: +I, SE, SD, DBA
*************************************************
| Think outside the box!
|
*************************************************
"Rich" wrote in message
news:1191951824.999477.46460@o3g2000hsb.googlegroups.com...
> I'm using a DataGridView to display unbound data, and it works great.
> However, I need to display descriptive data from a related table (one
> to many). If possible, I want to put the lookup table inside a
> column.
>
> Any thoughts on how to approach this?
>
> Thanks
>