Click here to Skip to main content
15,906,625 members
Home / Discussions / C#
   

C#

 
GeneralRe: NetLocalGroupAddMembers Pin
S. Senthil Kumar6-Nov-05 19:02
S. Senthil Kumar6-Nov-05 19:02 
QuestionTrain free @Microsoft Pin
vikas amin4-Nov-05 22:50
vikas amin4-Nov-05 22:50 
AnswerRe: Train free @Microsoft Pin
Glaxalg7-Nov-05 6:19
Glaxalg7-Nov-05 6:19 
QuestionTrain free @Microsoft Pin
vikas amin4-Nov-05 22:50
vikas amin4-Nov-05 22:50 
QuestionCreate Array In Method Paremeters Pin
budidharma4-Nov-05 19:54
budidharma4-Nov-05 19:54 
AnswerRe: Create Array In Method Paremeters Pin
leppie4-Nov-05 20:52
leppie4-Nov-05 20:52 
AnswerRe: Create Array In Method Paremeters Pin
Jon Rista8-Nov-05 7:06
Jon Rista8-Nov-05 7:06 
QuestionReading XML attribute and write into datagrid Pin
dunbshy4-Nov-05 14:47
dunbshy4-Nov-05 14:47 
i have a xml looks like this:
(?xml version="1.0" encoding="utf-8" ?)
(EventLog)
(Log Date="11/1/2005")
(Event) 10:37:42 AM : System is Successfully Loaded
(Event) 10:45:04 AM : System is Successfully Loaded
(/Log)
(Log Date="11/2/2005")
(Event) 8:39:32 PM : System is Successfully Loaded
(Event) 8:40:18 PM : System is Successfully Loaded
(/Log)
(/EventLog)

and i have a method which displays those xml data into the datagrid:

XmlDocument docXML = new XmlDocument();
docXML.Load("EventLog.xml");
DataSet dsEvent = new DataSet("Log");

dsEvent.ReadXml("../Debug/EventLog.xml");
dataGrid1.DataSource = dsEvent;
dataGrid1.DataMember = "Log";
dataGrid1.CaptionText = "NetWatcher Event Log";

It displays all the members for "Log" elements.. My problem is.. how to display the members of "Log" for particular date only?( particular "Log"'s attribute)

I've tried something like dataGrid1.DataMember = "Log Date="+@""11/2/05"" and it gives error like datamember Log Date = "11/2/05" was not found.

-- modified at 20:48 Friday 4th November, 2005
AnswerRe: Reading XML attribute and write into datagrid Pin
Jon Rista4-Nov-05 16:04
Jon Rista4-Nov-05 16:04 
GeneralRe: Reading XML attribute and write into datagrid Pin
dunbshy5-Nov-05 3:32
dunbshy5-Nov-05 3:32 
GeneralRe: Reading XML attribute and write into datagrid Pin
Jon Rista5-Nov-05 9:55
Jon Rista5-Nov-05 9:55 
GeneralRe: Reading XML attribute and write into datagrid Pin
dunbshy5-Nov-05 11:46
dunbshy5-Nov-05 11:46 
GeneralRe: Reading XML attribute and write into datagrid Pin
Jon Rista8-Nov-05 6:58
Jon Rista8-Nov-05 6:58 
Questioncalling a C# dll from an unmanaged C++ dll Pin
tmp04-Nov-05 13:56
tmp04-Nov-05 13:56 
AnswerRe: calling a C# dll from an unmanaged C++ dll Pin
Rob Graham4-Nov-05 15:29
Rob Graham4-Nov-05 15:29 
QuestionDatagrid Pin
mrnoname4-Nov-05 13:36
mrnoname4-Nov-05 13:36 
QuestionIDownloadManager COM Component in C# Pin
timothymfox4-Nov-05 12:58
timothymfox4-Nov-05 12:58 
QuestionDetecting a port Pin
picasso24-Nov-05 11:19
picasso24-Nov-05 11:19 
AnswerRe: Detecting a port Pin
enjoycrack4-Nov-05 11:41
enjoycrack4-Nov-05 11:41 
QuestionElegant check for .Net Framework 1.1 or 2.0? Pin
Tom Ollar4-Nov-05 9:21
Tom Ollar4-Nov-05 9:21 
AnswerRe: Elegant check for .Net Framework 1.1 or 2.0? Pin
Carl Mercier4-Nov-05 10:22
Carl Mercier4-Nov-05 10:22 
GeneralRe: Elegant check for .Net Framework 1.1 or 2.0? Pin
Tom Ollar5-Nov-05 3:58
Tom Ollar5-Nov-05 3:58 
AnswerRe: Elegant check for .Net Framework 1.1 or 2.0? Pin
leppie4-Nov-05 21:51
leppie4-Nov-05 21:51 
GeneralRe: Elegant check for .Net Framework 1.1 or 2.0? Pin
Tom Ollar5-Nov-05 4:15
Tom Ollar5-Nov-05 4:15 
QuestionConsuming image-generating web service in Excel Pin
julian_l4-Nov-05 8:41
julian_l4-Nov-05 8:41 

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.