Adding variable default values to new record in datagrid

  • Thread starter Thread starter Mike VaughanEdwards via .NET 247
  • Start date Start date
M

Mike VaughanEdwards via .NET 247

I want to add contect-specific default field values when I createa new record in a data grid. It will not always be the samevalue so I need to set it in code rather than in the databasedesign but I can not find the right object/event that will letme do this?

Any suggestions?

TIA

Mike VE
 
Hi,

Since you add row not to the grid itself, but to the underlying DataTable,
try to catch RowChanged event for this table. This event fires in a case if
you add, change or delete row
--
Val Mazur
Microsoft MVP

http://xport.mvps.org



message I want to add contect-specific default field values when I create a new
record in a data grid. It will not always be the same value so I need to
set it in code rather than in the database design but I can not find the
right object/event that will let me do this?

Any suggestions?

TIA

Mike VE
 
Back
Top