Hi Jacob,

Thanks for your information.
Now, I am trying the datagrid with XML for my example that I posted here. I am using the AutoGeneratedColumns = true and together with the datagrid's edit/delete/update Commands.
The problem now is that when I click EDIT, the columns which displaying the text of the elements(eg: 123456) will be displayed in a textbox under the ISBN Column. After when I have modified the value, I have to click UPDATE in order to update this value into the xml appropriately. But, how am I going to update it since i use autogeneratedcolumns (coz my xml will contain dynamic info), where i do not know about the textbox name and cannot specify which row in the xml to be updated.
For instance, the solution for autogeneratedcolumns=false will be as following, where the textbox name for editing is being known and the row in xml to be modified is known too:
int row = Convert.ToInt32(e.Item.ItemIndex);
TextBox edittext = null;
edittext = (TextBox)e.Item.FindControl("txtshortdesc");
dataset.Tables[0].Rows[row]["ShortDesc"] = edittext.Text;
So, how am i going to convert this part of programming to meet my requirements? i.e. without knowing which control to find, and the name of the element in the xml, so that the text of it can be modified.
Thanks
p/s: Here is the previous Xml file:
<?xml version="1.0" standalone="yes"?>
<Items>
<Books>
<ISBN>123456</ISBN>
<Title>ASP.NET</Title>
<Publisher>Wrox</Publisher>
</Books>
<DVD>
<Title>Princess Diary</Title>
<Region>Asia</Region>
</DVD>
<Games>
<Title>Super Mario</Title>
<Platform>PC</Platform>
</Games>
</Items>
Thank you very much
Regards
Jayce