Windows Develop Bookmark and Share   
 index > Windows Forms Data Controls and Databinding > How I do to Edit a DataGrid (Vs 2003 Framework 1) ?
 

How I do to Edit a DataGrid (Vs 2003 Framework 1) ?

private void Form2_Load(object sender, System.EventArgs e)

{

//

string myXMLfile = "\\Compact Flash\\Chw\\ProdutoParms.xml";

DataSet ds = new DataSet();

//

try

{

ds.ReadXml(myXMLfile);

dataGrid1.DataSource = ds.Tables [0];

}

catch (Exception ex)

{

MessageBox.Show(ex.ToString());

}

}

I Need edit the datagrid....

Somebody Can Help me ?

Sérgio Mendes  Wednesday, December 12, 2007 12:18 PM
In a windows forms datagrid as long as the datagrid's readonly property is false you can edit it.

http://msdn2.microsoft.com/en-us/library/5z6054yc.aspx

The path you posted looks like a path used on a smart device. The compact version of the datagrid is not editable. This article shows a work around

http://msdn2.microsoft.com/en-us/library/ms229684.aspx
Ken Tucker  Wednesday, December 12, 2007 3:38 PM
In a windows forms datagrid as long as the datagrid's readonly property is false you can edit it.

http://msdn2.microsoft.com/en-us/library/5z6054yc.aspx

The path you posted looks like a path used on a smart device. The compact version of the datagrid is not editable. This article shows a work around

http://msdn2.microsoft.com/en-us/library/ms229684.aspx
Ken Tucker  Wednesday, December 12, 2007 3:38 PM

You can use google to search for other answers

Custom Search

More Threads

• How to add foreign key automatically
• DataGridView combobox column doesn't select the value from drop down
• Restrict Combo to select value only from list
• New whitepapers for building DataGridView custom cells and columns
• Beginner data binding question
• BindingSource's AddNew fired automatically if no object in collection
• Adding new record with gridview
• how to set default values for data bound combobox
• need to edit the values for a table and save it
• SQLDataSource Edit Problem