Hi, (Using Adapter V2.5/VB/SQL Server 2005/WinForm/DevEx)
I'm maintaining data from 2 tables and am interested in how other developers maintain a table with related fields in a WinForm Grid?
I use 2 related tables (tblUserRole & tblRole).
tblUserRole
UserID
RoleID (FK related to Role table)
tblRole
RoleID
RoleName
RoleDescription
The grid has 2 columns (RoleName & RoleDescription).
It's populated with a collection of rows from tblRole, for a related tblUserRole.UserID.
The RoleName column is managed via a combo (Value member: RoleID, Display member: RoleName)
Problem
When I add another Role for a user on a new row, how do I also show its related description in the RoleDescription column?
I'm anxious to avoid use of an 'Add New' button + another dialogue to select the new Role, update the datasource and refresh the grid.
What options do I have to manage this in the grid itself?
Thanks for any thoughts/ideas