Click here to Skip to main content
15,921,840 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
GeneralRe: reset a memorystream Pin
thebread5-Aug-06 23:15
thebread5-Aug-06 23:15 
Questionhow can i create a License for my applications Pin
keroed_edmond5-Aug-06 8:29
keroed_edmond5-Aug-06 8:29 
AnswerRe: how can i create a License for my applications Pin
Christian Graus5-Aug-06 14:41
protectorChristian Graus5-Aug-06 14:41 
GeneralRe: how can i create a License for my applications Pin
keroed_edmond5-Aug-06 18:46
keroed_edmond5-Aug-06 18:46 
GeneralRe: how can i create a License for my applications Pin
Christian Graus6-Aug-06 0:24
protectorChristian Graus6-Aug-06 0:24 
QuestionPackaging .NET 1.1 Windows service and web application Pin
abcxyz824-Aug-06 6:52
abcxyz824-Aug-06 6:52 
QuestionSending raw packet ? Pin
Ariston Darmayuda4-Aug-06 6:43
Ariston Darmayuda4-Aug-06 6:43 
QuestionProblems with DataGridView control Pin
amdopteron4-Aug-06 1:21
amdopteron4-Aug-06 1:21 
Hello!

Please, I need help by solving two problems regarding the new DataGridView control.

Here is my simple example code:
// ==================== SNIP ====================
using System;
using System.Collections;
using System.Windows.Forms;

// Add a DataGridView named dataGridView1 to Form1.
namespace DataGridTest
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void Form1_Load(object sender, EventArgs e)
{
// Create an Order list...
IList order = new ArrayList();
order.Add(new Item(1, "Keyboard", 1, "http://www.keyboard.com/"));
order.Add(new Item(2, "Mouse", 1, "http://www.mouse.com/"));
order.Add(new Item(3, "Monitor", 2, "http://www.monitor.com/"));
// Add a Button column...
DataGridViewColumn col = new DataGridViewButtonColumn();
col.HeaderText = "Link";
col.Name = col.DataPropertyName = "URL";
dataGridView1.Columns.Add(col);
// And fill the DataGridView...
dataGridView1.AutoGenerateColumns = true;
dataGridView1.DataSource = order;
}
}

// Instances representing Order items
class Item
{
private int id;
private string description;
private int quantity;
private string url;
public Item(int i, string d, int q, string u)
{
id = i;
description = d;
quantity = q;
url = u;
}
public int Id { get { return id; } }
public string Description { get { return description; } }
public int Quantity { get { return quantity; } }
public string URL { get { return url; } }
}
}
// ==================== SNIP ====================

1.
How can I achieve that the user can sort the table by clicking the sort glyph of a column? (In the old DataGrid control that works by default.)

2.
The button cells should all show a text like "Link...". But programmatically I need to get the URL value of each cell and not the displayed text. Is that possible?

Numerous thanks for all advices.

Regards,
Amd Opteron

AnswerRe: Problems with DataGridView control Pin
Stephen McGuire4-Aug-06 3:25
Stephen McGuire4-Aug-06 3:25 
AnswerRe: Problems with DataGridView control Pin
Robert Rohde4-Aug-06 4:19
Robert Rohde4-Aug-06 4:19 
QuestionListbox Pin
hurux3-Aug-06 22:43
hurux3-Aug-06 22:43 
AnswerRe: Listbox Pin
Christian Graus5-Aug-06 14:44
protectorChristian Graus5-Aug-06 14:44 
QuestionWSE 3.0 Pin
Kanjinghat3-Aug-06 20:37
Kanjinghat3-Aug-06 20:37 
AnswerRe: WSE 3.0 Pin
Rob Graham4-Aug-06 5:32
Rob Graham4-Aug-06 5:32 
QuestionHelix SDK 10 and .NET Pin
Vineet Rajan3-Aug-06 18:29
Vineet Rajan3-Aug-06 18:29 
AnswerRe: Helix SDK 10 and .NET [modified] Pin
Dave Kreskowiak4-Aug-06 2:59
mveDave Kreskowiak4-Aug-06 2:59 
QuestionShared solution VS.NET Pin
NET_GEEK3-Aug-06 9:21
NET_GEEK3-Aug-06 9:21 
AnswerRe: Shared solution VS.NET Pin
Stephen McGuire3-Aug-06 13:01
Stephen McGuire3-Aug-06 13:01 
QuestionDo you know NET 2.0 documentation tools? Pin
wojti3-Aug-06 5:08
wojti3-Aug-06 5:08 
AnswerRe: Do you know NET 2.0 documentation tools? Pin
Robert Rohde4-Aug-06 1:19
Robert Rohde4-Aug-06 1:19 
GeneralRe: Do you know NET 2.0 documentation tools? Pin
wojti18-Aug-06 5:43
wojti18-Aug-06 5:43 
QuestionUsing 2.0 in 1.1 Pin
thebread3-Aug-06 4:08
thebread3-Aug-06 4:08 
AnswerRe: Using 2.0 in 1.1 Pin
Dan Neely3-Aug-06 4:32
Dan Neely3-Aug-06 4:32 
QuestionRe: Using 2.0 in 1.1 Pin
thebread3-Aug-06 4:40
thebread3-Aug-06 4:40 
AnswerRe: Using 2.0 in 1.1 Pin
Dave Kreskowiak3-Aug-06 5:17
mveDave Kreskowiak3-Aug-06 5:17 

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.