Click here to Skip to main content
15,891,136 members
Home / Discussions / C#
   

C#

 
AnswerRe: How to resize column width of datagrid. Pin
Mazdak17-Mar-04 3:29
Mazdak17-Mar-04 3:29 
AnswerRe: How to resize column width of datagrid. Pin
Heath Stewart17-Mar-04 5:47
protectorHeath Stewart17-Mar-04 5:47 
Questionhow to write meta information in files? Pin
g112917-Mar-04 0:42
g112917-Mar-04 0:42 
AnswerRe: how to write meta information in files? Pin
Heath Stewart17-Mar-04 5:42
protectorHeath Stewart17-Mar-04 5:42 
Generalwindows explorer type Treeview/Listview structure Pin
Inpreet Singh17-Mar-04 0:38
Inpreet Singh17-Mar-04 0:38 
GeneralRe: windows explorer type Treeview/Listview structure Pin
Heath Stewart17-Mar-04 5:37
protectorHeath Stewart17-Mar-04 5:37 
GeneralUpdate data in Grid on form1 from form2. Pin
Inpreet Singh16-Mar-04 23:55
Inpreet Singh16-Mar-04 23:55 
GeneralRe: Update data in Grid on form1 from form2. Pin
Heath Stewart17-Mar-04 5:33
protectorHeath Stewart17-Mar-04 5:33 
Instead of handling events on the DataGrid, it's better to handle events on the DataSet if you're using one, or rather the DataTable(s) contained in the DataSet. The DataTable has many events (like RowChanged and RowDeleted) you can handle. These are fired before or after (depending on which events you use) the underlying data source is updated. The DataGrid itself has no effective means to know when the data source was changed.

If you're not using a DataSet, you can either use appropriate events for the IList or IListSource implementation (like an ArrayList) if any are exposed, or add events by extending the class or creating your own wrapper class.

 

Microsoft MVP, Visual C#
My Articles
GeneralListView update Problem Pin
Snowjim16-Mar-04 23:55
Snowjim16-Mar-04 23:55 
GeneralRe: ListView update Problem Pin
Heath Stewart17-Mar-04 5:29
protectorHeath Stewart17-Mar-04 5:29 
GeneralSTGMEDIUM Union Layout Woes Pin
Tristan Rhodes16-Mar-04 22:03
Tristan Rhodes16-Mar-04 22:03 
GeneralRe: STGMEDIUM Union Layout Woes Pin
Heath Stewart17-Mar-04 4:51
protectorHeath Stewart17-Mar-04 4:51 
GeneralRe: STGMEDIUM Union Layout Woes Pin
Tristan Rhodes17-Mar-04 5:18
Tristan Rhodes17-Mar-04 5:18 
GeneralRe: STGMEDIUM Union Layout Woes Pin
Tristan Rhodes17-Mar-04 5:47
Tristan Rhodes17-Mar-04 5:47 
QuestionHow to use class in Web Service Pin
boat2002w16-Mar-04 22:01
boat2002w16-Mar-04 22:01 
AnswerRe: How to use class in Web Service Pin
Mazdak16-Mar-04 22:17
Mazdak16-Mar-04 22:17 
GeneralRe: How to use class in Web Service Pin
boat2002w16-Mar-04 22:30
boat2002w16-Mar-04 22:30 
GeneralRe: How to use class in Web Service Pin
Mazdak17-Mar-04 3:26
Mazdak17-Mar-04 3:26 
AnswerRe: How to use class in Web Service Pin
Michael Flanakin17-Mar-04 18:44
Michael Flanakin17-Mar-04 18:44 
GeneralEasy Arithmetic question Pin
northernlights16-Mar-04 21:02
northernlights16-Mar-04 21:02 
GeneralRe: Easy Arithmetic question Pin
Colin Angus Mackay16-Mar-04 22:48
Colin Angus Mackay16-Mar-04 22:48 
GeneralRe: Easy Arithmetic question Pin
northernlights16-Mar-04 23:49
northernlights16-Mar-04 23:49 
GeneralRe: Easy Arithmetic question Pin
Chris Meech17-Mar-04 4:05
Chris Meech17-Mar-04 4:05 
GeneralRe: Easy Arithmetic question Pin
Manster17-Mar-04 4:39
Manster17-Mar-04 4:39 
GeneralRe: Easy Arithmetic question Pin
HAHAHA_NEXT17-Mar-04 10:51
HAHAHA_NEXT17-Mar-04 10:51 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.