Click here to Skip to main content
16,011,120 members
Home / Discussions / C#
   

C#

 
GeneralRe: #Speed Pin
James T. Johnson10-Mar-02 9:45
James T. Johnson10-Mar-02 9:45 
Generalwindows service in c# Pin
omkamal6-Mar-02 4:14
omkamal6-Mar-02 4:14 
GeneralRe: windows service in c# Pin
8-May-02 12:27
suss8-May-02 12:27 
GeneralDeclarative Code Access Security Pin
6-Mar-02 3:58
suss6-Mar-02 3:58 
General**** The DataGrids! All of them! Pin
Domenic Denicola6-Mar-02 3:21
Domenic Denicola6-Mar-02 3:21 
GeneralRe: **** The DataGrids! All of them! Pin
James T. Johnson6-Mar-02 13:05
James T. Johnson6-Mar-02 13:05 
GeneralRe: **** The DataGrids! All of them! Pin
Domenic Denicola6-Mar-02 13:39
Domenic Denicola6-Mar-02 13:39 
GeneralRe: **** The DataGrids! All of them! Pin
James T. Johnson6-Mar-02 14:52
James T. Johnson6-Mar-02 14:52 
[edit] bah after re-reading your original post I see I haven't posted anything helpful Cry | :(( About the best I can offer would be to let the grid do its job, then when you need the data, pull it from the datagrid all at once (or do it when you add/edit a row). [/edit]

Domenic [CPUA 0x1337] wrote:
A dataset seems to just be a collection of datatables that relate to each other. I only use one data table, and I only want to use it for display and user input purposes.

The power of the dataset is its disconnected nature. The data stored in it is just that data; it doesn't have to come from a database at all. That is one of the strengths of .NET, it uses generic binding rather than forcing the use of ADO.NET or anyother database type technology.

Domenic [CPUA 0x1337] wrote:
DataGrids looked like the solution to my problem, but I dunno, maybe I've stepped too far into the realm of database programming by using them.

After some playing around I think you can do what you need to with a single DataTable (as I think you originally suggested).

Handling the ColumnChanging event lets you determine if a change should be allowed (if you don't want to allow the change throw an exception in the event handler).

Unfortunately I don't see an event that tells you when a new row gets added (and accepted) so you may have a hard time to keep the two in synch at all times but so long as you know when it does/doesn't need to be in synch you can do so by going through the datarow collection on the table.

Thanks for giving me the push to take a deeper look into DataGrids and DataTables Smile | :)

James

Sonork ID: 100.11138 - Hasaki
"Smile your little smile, take some tea with me awhile.
And every day we'll turn another page.
Behind our glass we'll sit and look at our ever-open book,
One brown mouse sitting in a cage."
"One Brown Mouse" from Heavy Horses, Jethro Tull 1978

GeneralRe: **** The DataGrids! All of them! Pin
Domenic Denicola6-Mar-02 15:08
Domenic Denicola6-Mar-02 15:08 
GeneralRe: **** The DataGrids! All of them! Pin
James T. Johnson6-Mar-02 15:36
James T. Johnson6-Mar-02 15:36 
GeneralErrors & Exceptions in C# Pin
Anand Amirineni5-Mar-02 13:05
Anand Amirineni5-Mar-02 13:05 
GeneralRe: Errors & Exceptions in C# Pin
James T. Johnson5-Mar-02 15:50
James T. Johnson5-Mar-02 15:50 
GeneralRe: Errors & Exceptions in C# Pin
7-Mar-02 18:17
suss7-Mar-02 18:17 
QuestionHow to store an object into a database? Pin
5-Mar-02 9:17
suss5-Mar-02 9:17 
AnswerRe: How to store an object into a database? Pin
James T. Johnson5-Mar-02 10:06
James T. Johnson5-Mar-02 10:06 
AnswerRe: How to store an object into a database? Pin
James T. Johnson6-Mar-02 10:20
James T. Johnson6-Mar-02 10:20 
GeneralRe: How to store an object into a database? Pin
AndyG6-Mar-02 18:26
AndyG6-Mar-02 18:26 
Generalhelp in treeview needed Pin
4-Mar-02 22:38
suss4-Mar-02 22:38 
GeneralRe: help in treeview needed Pin
Anand Amirineni5-Mar-02 14:12
Anand Amirineni5-Mar-02 14:12 
QuestionHow to use SSL Pin
Felix Nielsen4-Mar-02 9:19
Felix Nielsen4-Mar-02 9:19 
QuestionHow to sublass visually a C# class Pin
4-Mar-02 6:03
suss4-Mar-02 6:03 
AnswerRe: How to sublass visually a C# class Pin
James T. Johnson4-Mar-02 14:12
James T. Johnson4-Mar-02 14:12 
GeneralRe: How to sublass visually a C# class Pin
5-Mar-02 3:19
suss5-Mar-02 3:19 
GeneralRe: How to sublass visually a C# class Pin
James T. Johnson5-Mar-02 7:37
James T. Johnson5-Mar-02 7:37 
GeneralRe: How to sublass visually a C# class Pin
6-Mar-02 2:44
suss6-Mar-02 2:44 

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.