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 / September 2004

Tip: Looking for answers? Try searching our database.

datagrid too week?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
nick - 18 Sep 2004 05:33 GMT
It seems the datagrid in windows form is not powerful, even for format. Is
it the only way to create a rich formatting datagrid that using dynamically
created controls in a panel? sounds a lot of work.

Btw, how to capture the insert/delete/update event when using datagrid?
(because I need customized sql statement to access the database.
ClayB [Syncfusion] - 18 Sep 2004 08:38 GMT
It does take significant coding to vary cell by cell the fonts and colors
used in the Windows Forms DataGrid. The upcoming VS2005 release has a
DataGridView class that is much easier to use.

Here is a link that shows how you can use a derived column style to vary
things now.
     http://www.syncfusion.com/faq/winforms/search/927.asp

To catch the insert/delete/update, you can subscribe to the
CurrencyManager.ListChanged event.

CurrencyManager cm = (CurrencyManager)
this.dataGrid1.BindingCOntext[this.dataGrid1.DataSource,
this.dataGrid1.DataMember];
cm.ListChanged += new ListChangedEventHandler(cm_ListChanged);

=============================
Clay Burch, .NET MVP

Visit www.syncfusion.com for the coolest tools

> It seems the datagrid in windows form is not powerful, even for format. Is
> it the only way to create a rich formatting datagrid that using
> dynamically created controls in a panel? sounds a lot of work.
>
> Btw, how to capture the insert/delete/update event when using datagrid?
> (because I need customized sql statement to access the database.
nick - 18 Sep 2004 23:28 GMT
Thanks, any example? Still not clear to figure out how "insert", "delete" be
triggered by the ListChangedEventHandler....

> It does take significant coding to vary cell by cell the fonts and colors
> used in the Windows Forms DataGrid. The upcoming VS2005 release has a
[quoted text clipped - 23 lines]
>> Btw, how to capture the insert/delete/update event when using datagrid?
>> (because I need customized sql statement to access the database.

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.