PC Review


Reply
Thread Tools Rate Thread

datagrid insert row event

 
 
=?Utf-8?B?cG1jZ3VpcmU=?=
Guest
Posts: n/a
 
      20th May 2004
I have a form displaying information from one record in a datatable and a datagrid displaying "child" information from records in another, related, datatable. I have added a DatagridTableStyle so that the relevant foreign key is not displayed in the datagrid. How do I automatically insert the foreign key value into the child record upon row insertion in the datagrid

It seems I need an OnInsert eventhandler for either the child datatable or for the datagrid, but I can't figure out how to build one

Thanks

Pat
 
Reply With Quote
 
 
 
 
Ken Tucker [MVP]
Guest
Posts: n/a
 
      20th May 2004
Hi,

http://www.syncfusion.com/FAQ/WinFor...c44c.asp#q823q

Ken
----------------
"pmcguire" <(E-Mail Removed)> wrote in message
news:8F49A5AE-7FFC-4D6C-B4E9-(E-Mail Removed)...
>I have a form displaying information from one record in a datatable and a
>datagrid displaying "child" information from records in another, related,
>datatable. I have added a DatagridTableStyle so that the relevant foreign
>key is not displayed in the datagrid. How do I automatically insert the
>foreign key value into the child record upon row insertion in the datagrid?
>
> It seems I need an OnInsert eventhandler for either the child datatable or
> for the datagrid, but I can't figure out how to build one.
>
> Thanks,
>
> Pat



 
Reply With Quote
 
=?Utf-8?B?cG1jZ3VpcmU=?=
Guest
Posts: n/a
 
      20th May 2004
You the man, Ken! Thanks

Pat
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
how to insert data from datagrid to datasource using insert sql statement sandeep.damodar Microsoft VB .NET 1 16th Mar 2007 12:17 PM
How to add a Dropdown list to a datagrid at runtime (dynamic) without using template columns in ASP.NET and still have the ability to us the datagrid Update event. Daniel Roth Microsoft Dot NET Framework 0 5th Apr 2005 04:54 AM
Datagrid cell change event? Where to find event. Roger Microsoft VB .NET 4 29th Mar 2005 09:45 PM
any event in datagrid raised when data in datagrid changed ali asjad Microsoft Dot NET 1 25th Feb 2005 05:51 PM
Insert from datagrid Goen Microsoft Dot NET 1 3rd Nov 2003 05:29 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 09:03 AM.