Click here to Skip to main content
15,915,513 members
Home / Discussions / C#
   

C#

 
AnswerRe: Creating conditional windows application Pin
Ashok Dhamija8-Sep-05 3:38
Ashok Dhamija8-Sep-05 3:38 
AnswerRe: Creating conditional windows application Pin
Patric_J8-Sep-05 6:13
Patric_J8-Sep-05 6:13 
Questionmy console application doesn't run on other pc Pin
Sasuko8-Sep-05 0:04
Sasuko8-Sep-05 0:04 
AnswerRe: my console application doesn't run on other pc Pin
Michael P Butler8-Sep-05 0:23
Michael P Butler8-Sep-05 0:23 
GeneralRe: my console application doesn't run on other pc Pin
Sasuko8-Sep-05 3:40
Sasuko8-Sep-05 3:40 
GeneralRe: my console application doesn't run on other pc Pin
Ashok Dhamija8-Sep-05 4:18
Ashok Dhamija8-Sep-05 4:18 
Questionhow can i get filed from C3 Form to Crystal Pin
Anonymous7-Sep-05 23:59
Anonymous7-Sep-05 23:59 
QuestionDataGrid.DataSource customization Pin
Corax7-Sep-05 23:55
Corax7-Sep-05 23:55 
I have a class with two integer properties.

An array of this type is assigned to a DataGrid as DataSource.

I have a Hashtable, which contains the textual representation of the integer properties of the previous array.

How can I make grid to show these textual values instead of numbers if the first array is assigned as DataSource?

-- example:

<br />
public class Book<br />
{<br />
 private int bookID;<br />
 private int amount;<br />
<br />
 public int BookID { get { return this.bookID; } }<br />
 public int Amount { get { return this.amount; } }<br />
}<br />
<br />
// [...]<br />
<br />
private void InitGrid()<br />
{<br />
 Book[] books; // an array<br />
 books = GetBooks(); // gets the collection of books<br />
<br />
 // the book titles I want to appear in the grid instead of the IDs<br />
 Hashtable bookTitles = new Hashtable();<br />
 bookTitles.Add(17, "Jungle Book");<br />
 bookTitles.Add(38, "Another Book");<br />
<br />
 // making the assocation<br />
 this.dataGrid1.DataSource = books;<br />
<br />
 // This works correctly, a grid is shown with two columns,<br />
 //  with numberic BookIDs and the Amounts.<br />
 // But I want to see book titles and not IDs.<br />
 // How should I do it without creating a new array<br />
 //  including the book titles?<br />
 // Is it possible without subclassing DataGridTextBox? Is<br />
 // .net DataBinding capable of doing such things?<br />
}<br />

QuestionHow 2 select best display resolution? Pin
majidbhutta7-Sep-05 23:01
majidbhutta7-Sep-05 23:01 
AnswerRe: How 2 select best display resolution? Pin
Dave Kreskowiak8-Sep-05 1:53
mveDave Kreskowiak8-Sep-05 1:53 
QuestionProblem with ParameterInfo in System.Reflection Pin
israfel7-Sep-05 22:56
israfel7-Sep-05 22:56 
AnswerRe: Problem with ParameterInfo in System.Reflection Pin
israfel8-Sep-05 0:36
israfel8-Sep-05 0:36 
QuestionHow to locate and read a xml file,search an element in that file and return the data corresponding to that element in string format,then deserialize the string to value object. Pin
Member 22374277-Sep-05 22:37
Member 22374277-Sep-05 22:37 
QuestionSending XML (file,stream) to server and recieving response Pin
Stefan_ Spenz7-Sep-05 22:21
Stefan_ Spenz7-Sep-05 22:21 
AnswerRe: Sending XML (file,stream) to server and recieving response Pin
Guffa7-Sep-05 23:05
Guffa7-Sep-05 23:05 
GeneralRe: Sending XML (file,stream) to server and recieving response Pin
Stefan_ Spenz7-Sep-05 23:14
Stefan_ Spenz7-Sep-05 23:14 
GeneralRe: Sending XML (file,stream) to server and recieving response Pin
Guffa8-Sep-05 3:26
Guffa8-Sep-05 3:26 
GeneralRe: Sending XML (file,stream) to server and recieving response Pin
Stefan_ Spenz8-Sep-05 21:23
Stefan_ Spenz8-Sep-05 21:23 
Questionusing comboBox in datagird Pin
Member 21264687-Sep-05 21:25
Member 21264687-Sep-05 21:25 
Answer[Message Deleted] Pin
| Muhammad Waqas Butt |7-Sep-05 22:56
professional| Muhammad Waqas Butt |7-Sep-05 22:56 
AnswerRe: using comboBox in datagird Pin
| Muhammad Waqas Butt |7-Sep-05 23:00
professional| Muhammad Waqas Butt |7-Sep-05 23:00 
QuestionGet content of a web page Pin
kokain7-Sep-05 21:22
kokain7-Sep-05 21:22 
Questionhow to prevent duplicate file in Access db? Pin
nidhelp7-Sep-05 21:20
nidhelp7-Sep-05 21:20 
AnswerRe: how to prevent duplicate file in Access db? Pin
enjoycrack8-Sep-05 1:48
enjoycrack8-Sep-05 1:48 
GeneralRe: how to prevent duplicate file in Access db? Pin
nidhelp8-Sep-05 15:01
nidhelp8-Sep-05 15:01 

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.