Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Windows Forms / WinForm General / April 2005

Tip: Looking for answers? Try searching our database.

Data Grid: Adding new  Rows

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Asela Gunawardena - 21 Apr 2005 13:13 GMT
Hi
There is a databound grid that is being used in one of my Master - Detail
form there I need to keep two columns hidden and assign Autogenerated values
once a user adds a new record through the grid. can somebody please tell me
how to do this; as i couldn't find a single event that is fired once a new
row is added to the grid; and also i have tried quite a bit of fruite less
methods like medling with the data source etc. can somebody please help me
on this.

thankx in advance
Marvin Varela - 21 Apr 2005 19:54 GMT
You have to use the events associated with the datasource of the grid and
not with the grid itself.

If your datasource is a DataTable you culd use DataTable.RowChanged event.
the parameter DataRowChangeEventArgs e will give you an Action property
where you can find if the row was added and an instance of the inserted
DataRow.

Hope this helps.

> Hi
> There is a databound grid that is being used in one of my Master - Detail
[quoted text clipped - 6 lines]
>
> thankx in advance

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.