Click here to Skip to main content
15,917,005 members
Home / Discussions / C#
   

C#

 
GeneralRe: Problem with "Cannot implicitly convert type "string" to "int" While using 2 buttons on Windows form application Pin
N a v a n e e t h18-Oct-09 18:18
N a v a n e e t h18-Oct-09 18:18 
AnswerRe: Problem with "Cannot implicitly convert type "string" to "int" While using 2 buttons on Windows form application Pin
AhmedMasum19-Oct-09 0:44
AhmedMasum19-Oct-09 0:44 
QuestionWeb site Ripper (Copier) in C# Pin
fireblade8018-Oct-09 13:56
fireblade8018-Oct-09 13:56 
AnswerRe: Web site Ripper (Copier) in C# Pin
Christian Graus18-Oct-09 14:06
protectorChristian Graus18-Oct-09 14:06 
AnswerRe: Web site Ripper (Copier) in C# Pin
N a v a n e e t h18-Oct-09 17:08
N a v a n e e t h18-Oct-09 17:08 
GeneralRe: Web site Ripper (Copier) in C# Pin
Luc Pattyn18-Oct-09 18:11
sitebuilderLuc Pattyn18-Oct-09 18:11 
GeneralRe: Web site Ripper (Copier) in C# Pin
N a v a n e e t h18-Oct-09 18:20
N a v a n e e t h18-Oct-09 18:20 
QuestionCannot set listview colum data correctly Pin
c#coder200918-Oct-09 13:34
c#coder200918-Oct-09 13:34 
-Please keep in mind I am still a beginner programmer when adding replies. I need stuff explained in simple terms with some comments so I can understand it better. Thanks.-

For some reason I cannot seem to add items to various colums in my listview. I set all three columns up in the designer as well as the listview.

A little more info on what I am trying to achieve. I have this XML file:
<?xml version="1.0" encoding="utf-8">;
<List>;
<tem Name="One" Version="1.0" Filename="file.exe" />;
<Item Name="Two" Version="2.0" Filename="file2.exe" />;
</List>;

I have two queries as such:
var query_name = from n in ModListUser.Root.Descendants("Mod")
select n.Attribute("Name").Value;

var query_ver = from v in ModListUser.Root.Descendants("Mod")
select v.Attribute("Version").Value;

I need to line up the name and Version attributes into two different colums, but yet keep them lined up. So it would need to be like this:
Column1 | Column2 | Column3
One | 1.0 | file.exe
Two | 2.0 | file2.exe

For every item in the list which I don't know how many but eventually I am going to compare only selected values.
I realize I need a new Attribute for the file names that way I can match a directory and get only the needed items. Is there a way I can combine my query to get all the attributes for item with a specific name. Like being able to get 1.0 from One and so on?

So say if user only has Two but not One I would want to only display Two.
AnswerRe: Cannot set listview colum data correctly Pin
N a v a n e e t h18-Oct-09 17:25
N a v a n e e t h18-Oct-09 17:25 
GeneralRe: Cannot set listview colum data correctly Pin
c#coder200918-Oct-09 18:06
c#coder200918-Oct-09 18:06 
GeneralRe: Cannot set listview colum data correctly Pin
N a v a n e e t h18-Oct-09 18:11
N a v a n e e t h18-Oct-09 18:11 
GeneralRe: Cannot set listview colum data correctly [modified] Pin
c#coder200918-Oct-09 18:25
c#coder200918-Oct-09 18:25 
GeneralRe: Cannot set listview colum data correctly Pin
N a v a n e e t h19-Oct-09 5:35
N a v a n e e t h19-Oct-09 5:35 
Questionborzoi 1.02 and C# Pin
adam syria18-Oct-09 11:41
adam syria18-Oct-09 11:41 
AnswerRe: borzoi 1.02 and C# Pin
Christian Graus18-Oct-09 14:07
protectorChristian Graus18-Oct-09 14:07 
QuestionWCF - Client Wait Other Client [modified] Pin
dataminers18-Oct-09 11:13
dataminers18-Oct-09 11:13 
AnswerRe: WCF - Client Wait Other Client Pin
Ravi Bhavnani18-Oct-09 18:11
professionalRavi Bhavnani18-Oct-09 18:11 
GeneralRe: WCF - Client Wait Other Client Pin
dataminers18-Oct-09 20:53
dataminers18-Oct-09 20:53 
AnswerRe: WCF - Client Wait Other Client [modified] Pin
Mirko198018-Oct-09 23:08
Mirko198018-Oct-09 23:08 
Questioncustom control events Pin
teknolog12318-Oct-09 10:00
teknolog12318-Oct-09 10:00 
AnswerRe: custom control events Pin
DaveyM6918-Oct-09 10:22
professionalDaveyM6918-Oct-09 10:22 
GeneralRe: custom control events Pin
teknolog12318-Oct-09 12:01
teknolog12318-Oct-09 12:01 
GeneralRe: custom control events Pin
Dave Kreskowiak18-Oct-09 12:51
mveDave Kreskowiak18-Oct-09 12:51 
GeneralRe: custom control events Pin
teknolog12319-Oct-09 5:29
teknolog12319-Oct-09 5:29 
QuestionSave everything but the blob to DB Pin
JRivord18-Oct-09 8:46
JRivord18-Oct-09 8:46 

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.