Click here to Skip to main content
16,006,348 members
Home / Discussions / C#
   

C#

 
GeneralRe: Regex Question: Match if absent Pin
V.23-Mar-07 5:42
professionalV.23-Mar-07 5:42 
GeneralRe: Regex Question: Match if absent Pin
CPallini24-Mar-07 22:50
mveCPallini24-Mar-07 22:50 
Questionlist box Pin
marwan_siala23-Mar-07 1:57
marwan_siala23-Mar-07 1:57 
AnswerRe: list box Pin
StianSandberg23-Mar-07 2:10
StianSandberg23-Mar-07 2:10 
GeneralRe: list box Pin
marwan_siala23-Mar-07 2:20
marwan_siala23-Mar-07 2:20 
GeneralRe: list box Pin
joon vh.23-Mar-07 2:34
joon vh.23-Mar-07 2:34 
GeneralRe: list box Pin
marwan_siala23-Mar-07 4:09
marwan_siala23-Mar-07 4:09 
QuestionHow do I display a dynamically generated ArrayList of custom objects in a WinForms datagrid in .NET 1.1? [modified] Pin
Vikram A Punathambekar23-Mar-07 1:56
Vikram A Punathambekar23-Mar-07 1:56 
I have a collection (ArrayList) of a type we'll call BoolPair. It is generated dynamically. BoolPair simply has two bools - bool1 and bool2. I'd like to display it in a DataGrid:
* with a header
* as three columns - the row number, and two strings that describe the values of bool1 and bool2.
* occupying the entire width of the datagrid

I have no problems exposing the bools as properties. Rama Krishna suggested I create properties and simply set the DataGrid's DataSource property to my ArrayList, but it has the following caveats:
1. I'm not able to format the header, i.e., choose the text to be displayed in the header
2. I don't get a row number (this is easy to fix, though)
3. The columns have the default width. I want them to occupy the entire width of the datagrid.

I *have* to use .NET 1.1. Thanks in advance. Smile | :)


-- modified at 8:48 Friday 23rd March, 2007

Cheers,
Vikram.

The cold will freeze our stares
We won't care...

AnswerRe: How do I display a dynamically generated ArrayList of custom objects in a datagrid in .NET 1.1? Pin
joon vh.23-Mar-07 2:37
joon vh.23-Mar-07 2:37 
GeneralRe: How do I display a dynamically generated ArrayList of custom objects in a datagrid in .NET 1.1? Pin
Vikram A Punathambekar23-Mar-07 2:51
Vikram A Punathambekar23-Mar-07 2:51 
GeneralRe: How do I display a dynamically generated ArrayList of custom objects in a datagrid in .NET 1.1? Pin
joon vh.23-Mar-07 2:57
joon vh.23-Mar-07 2:57 
GeneralRe: How do I display a dynamically generated ArrayList of custom objects in a datagrid in .NET 1.1? Pin
Vikram A Punathambekar23-Mar-07 3:15
Vikram A Punathambekar23-Mar-07 3:15 
GeneralRe: How do I display a dynamically generated ArrayList of custom objects in a datagrid in .NET 1.1? Pin
joon vh.23-Mar-07 3:19
joon vh.23-Mar-07 3:19 
GeneralRe: How do I display a dynamically generated ArrayList of custom objects in a datagrid in .NET 1.1? Pin
MoustafaS23-Mar-07 3:34
MoustafaS23-Mar-07 3:34 
QuestionEntering special colums to Datagrid Pin
Starzfighter23-Mar-07 1:05
Starzfighter23-Mar-07 1:05 
AnswerRe: Entering special colums to Datagrid Pin
joon vh.23-Mar-07 2:38
joon vh.23-Mar-07 2:38 
QuestionHow to copy Bitmap Pin
sandeepkavade23-Mar-07 1:00
sandeepkavade23-Mar-07 1:00 
AnswerRe: How to copy Bitmap Pin
Guffa23-Mar-07 1:04
Guffa23-Mar-07 1:04 
QuestionXmlSerializer Pin
darkcalin23-Mar-07 0:42
darkcalin23-Mar-07 0:42 
AnswerRe: XmlSerializer Pin
stancrm23-Mar-07 1:28
stancrm23-Mar-07 1:28 
AnswerRe: XmlSerializer Pin
Stefan Troschuetz23-Mar-07 1:28
Stefan Troschuetz23-Mar-07 1:28 
AnswerRe: XmlSerializer Pin
joon vh.23-Mar-07 2:41
joon vh.23-Mar-07 2:41 
QuestionProblem with refreshing contents of form Pin
Affan Toor23-Mar-07 0:23
Affan Toor23-Mar-07 0:23 
AnswerRe: Problem with refreshing contents of form Pin
joon vh.23-Mar-07 0:46
joon vh.23-Mar-07 0:46 
GeneralRe: Problem with refreshing contents of form Pin
Affan Toor26-Mar-07 5:16
Affan Toor26-Mar-07 5:16 

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.