HI, I have a question.
I have an XML file with calendar events. When a user clicks on a particular day in my Calendar, the events for that day are shown (using a DataView).
My XML file has this structure:
<Calendar>
<Event>
<ShortDesc>first event</ShortDesc>
<DetailDesc>description</DetailDesc>
<EventDate>12/25/2002</EventDate>
<StartTime>8:00AM</StartTime>
<EndTime>11:30AM</EndTime>
</Event>
<Event>
<ShortDesc>second event</ShortDesc>
<DetailDesc>description</DetailDesc>
<EventDate>12/25/2002</EventDate>
<StartTime>6:00PM</StartTime>
<EndTime>7:30PM</EndTime>
</Event>
..........
</Calendar>
very simple.
I then put the data into a DataView and bind to a DataGrid.
The problem I am having is deleting/updating events in the DataView, which will actually link to the correct underlying Datatable Row.
Is it imperative that I have some sort of 'unique' ID/element/attribute in this XML file, or can I just link the selected index number of the DataView to the correct DataRow in the DataTable ?
What's the best way to accomplish this ?
I'm pretty new to .NET and programming so any help will be greatly appreciated !
thanks!!
I have an XML file with calendar events. When a user clicks on a particular day in my Calendar, the events for that day are shown (using a DataView).
My XML file has this structure:
<Calendar>
<Event>
<ShortDesc>first event</ShortDesc>
<DetailDesc>description</DetailDesc>
<EventDate>12/25/2002</EventDate>
<StartTime>8:00AM</StartTime>
<EndTime>11:30AM</EndTime>
</Event>
<Event>
<ShortDesc>second event</ShortDesc>
<DetailDesc>description</DetailDesc>
<EventDate>12/25/2002</EventDate>
<StartTime>6:00PM</StartTime>
<EndTime>7:30PM</EndTime>
</Event>
..........
</Calendar>
very simple.
I then put the data into a DataView and bind to a DataGrid.
The problem I am having is deleting/updating events in the DataView, which will actually link to the correct underlying Datatable Row.
Is it imperative that I have some sort of 'unique' ID/element/attribute in this XML file, or can I just link the selected index number of the DataView to the correct DataRow in the DataTable ?
What's the best way to accomplish this ?
I'm pretty new to .NET and programming so any help will be greatly appreciated !
thanks!!