Click here to Skip to main content
16,009,068 members
Home / Discussions / C#
   

C#

 
GeneralRe: .Net framework source code Pin
Stephane Rodriguez.23-Aug-02 5:49
Stephane Rodriguez.23-Aug-02 5:49 
GeneralRe: .Net framework source code Pin
Stephane Rodriguez.24-Aug-02 6:59
Stephane Rodriguez.24-Aug-02 6:59 
GeneralOwnerDraw TreeView Pin
Nnamdi Onyeyiri22-Aug-02 21:34
Nnamdi Onyeyiri22-Aug-02 21:34 
GeneralOverriding the 'X' button on a form Pin
Rodney S. Foley22-Aug-02 19:38
Rodney S. Foley22-Aug-02 19:38 
GeneralRe: Overriding the 'X' button on a form Pin
navinnx22-Aug-02 20:24
navinnx22-Aug-02 20:24 
GeneralRe: Overriding the 'X' button on a form Pin
Stephane Rodriguez.22-Aug-02 20:51
Stephane Rodriguez.22-Aug-02 20:51 
GeneralRe: Overriding the 'X' button on a form Pin
Rodney S. Foley22-Aug-02 21:00
Rodney S. Foley22-Aug-02 21:00 
QuestionDataGrid, to bind or not to bind? Pin
Luis Alonso Ramos22-Aug-02 16:49
Luis Alonso Ramos22-Aug-02 16:49 
I'm trying to use the DataGrid control to edit some data, but I think it must be bound to some data set. Stephane Rodriguez told me in a previous thread that it doesn't need to be, but looking through the docs I found this:

Introduction to the Windows Forms DataGrid Control
ms-help://MS.VSCC/MS.MSDNVS/vbcon/html/vbconIntroductiontotheDataGridControl.htm[^]

Binding Data to the Control
In order for the DataGrid control to work, it should be bound to a data source using the DataSource and DataMember properties at design time or the SetDataBinding method at run time. This binding points the DataGrid to an instantiated data-source object (such as a DataSet or DataTable), with the DataGrid control showing the results of actions that are performed on the data. Most data-specific actions are not performed through the DataGrid, but instead through the data source.

If the data in the bound dataset is updated through any mechanism, the DataGrid control reflects the changes. If the data grid and its table styles and column styles have the ReadOnly property set to false, the data in the dataset can be updated through the DataGrid control.


I could probably create an in memory dataset and bind the control to it (since I don't have a table in my database that corresponds directly (or even similarly) to what will be shown and edited on the table.)

But I have no idea on how to use data sets and similar clases, any pointers??

Or is there a way to use the control unbound? how do I add columns? rows? set the cells' value?

Thanks,

-- LuisR

──────────────
  Luis Alonso Ramos
  Chihuahua, Mexico
  www.luisalonsoramos.com

"Do not worry about your difficulties in mathematics, I assure you that mine are greater." -- Albert Einstein
AnswerRe: DataGrid, to bind or not to bind? Pin
Stephane Rodriguez.22-Aug-02 20:49
Stephane Rodriguez.22-Aug-02 20:49 
GeneralRe: DataGrid, to bind or not to bind? Pin
Luis Alonso Ramos23-Aug-02 4:21
Luis Alonso Ramos23-Aug-02 4:21 
Generalgetting location of schema used Pin
James McCutcheon22-Aug-02 13:08
James McCutcheon22-Aug-02 13:08 
Questioncom? Pin
imran_rafique22-Aug-02 10:36
imran_rafique22-Aug-02 10:36 
AnswerRe: com? Pin
David Stone22-Aug-02 10:46
sitebuilderDavid Stone22-Aug-02 10:46 
GeneralUsing MS WebBrowser AX Control under .NET Pin
tamas22-Aug-02 9:50
tamas22-Aug-02 9:50 
GeneralRe: Using MS WebBrowser AX Control under .NET Pin
Stephane Rodriguez.24-Aug-02 6:56
Stephane Rodriguez.24-Aug-02 6:56 
GeneralRe: Using MS WebBrowser AX Control under .NET Pin
Anonymous28-Aug-02 3:00
Anonymous28-Aug-02 3:00 
GeneralSerialization/Deserialization Using Sockets Pin
dwebster22-Aug-02 9:41
dwebster22-Aug-02 9:41 
GeneralRe: Serialization/Deserialization Using Sockets Pin
David Stone22-Aug-02 10:13
sitebuilderDavid Stone22-Aug-02 10:13 
GeneralRe: Serialization/Deserialization Using Sockets Pin
dwebster22-Aug-02 10:58
dwebster22-Aug-02 10:58 
GeneralRe: Serialization/Deserialization Using Sockets Pin
David Stone22-Aug-02 11:07
sitebuilderDavid Stone22-Aug-02 11:07 
GeneralRe: Serialization/Deserialization Using Sockets Pin
dwebster23-Aug-02 5:51
dwebster23-Aug-02 5:51 
GeneralRe: Serialization/Deserialization Using Sockets Pin
David Stone23-Aug-02 6:55
sitebuilderDavid Stone23-Aug-02 6:55 
GeneralRe: Serialization/Deserialization Using Sockets Pin
dwebster23-Aug-02 7:36
dwebster23-Aug-02 7:36 
GeneralRe: Serialization/Deserialization Using Sockets Pin
David Stone23-Aug-02 8:10
sitebuilderDavid Stone23-Aug-02 8:10 
GeneralWindows Form Designer Woes Pin
Nnamdi Onyeyiri22-Aug-02 9:22
Nnamdi Onyeyiri22-Aug-02 9:22 

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.