Click here to Skip to main content
15,888,351 members
Home / Discussions / C#
   

C#

 
GeneralRe: Regex: Very basic question Pin
leppie19-Apr-05 19:18
leppie19-Apr-05 19:18 
GeneralRe: Regex: Very basic question Pin
matthias s.20-Apr-05 0:16
matthias s.20-Apr-05 0:16 
GeneralRe: Regex: Very basic question Pin
leppie20-Apr-05 3:58
leppie20-Apr-05 3:58 
GeneralRe: Regex: Very basic question Pin
Member 163675520-Apr-05 23:39
Member 163675520-Apr-05 23:39 
GeneralRe: Regex: Very basic question Pin
leppie19-Apr-05 19:21
leppie19-Apr-05 19:21 
GeneralDatagrid formatting Pin
esjq19-Apr-05 4:55
esjq19-Apr-05 4:55 
GeneralRe: Datagrid formatting Pin
John Fisher19-Apr-05 8:14
John Fisher19-Apr-05 8:14 
GeneralRe: Datagrid formatting Pin
Luis Alonso Ramos19-Apr-05 9:17
Luis Alonso Ramos19-Apr-05 9:17 
Yes, check the DataGridTableStyle class. The basic idea is that you create one DataGridTableStyle object, and then add DataGridTextBoxColumn or other column types (check boxes por example) to the table style, only for the columns you want to display (use the MappingName property).

Here's an example, from some code I'm working on right now:
DataGridTableStyle style = new DataGridTableStyle();
style.MappingName        = dtZoneCollectors.TableName;

DataGridTextBoxColumn textCol = new DataGridTextBoxColumn();
textCol.MappingName           = "column_name";
textCol.HeaderText            = "Name as it will appear to the user";
textCol.Width                 = 200;
textCol.ReadOnly              = true;
style.GridColumnStyles.Add(textCol);

gridCollectors.TableStyles.Add(style);
It only adds one column, but hopefully you'll get the idea.

Good luck!

-- LuisR



Luis Alonso Ramos
Intelectix - Chihuahua, Mexico

Not much here: My CP Blog!

GeneralRe: Datagrid formatting Pin
esjq19-Apr-05 19:58
esjq19-Apr-05 19:58 
QuestionHow to select a check box and add to cart in C# Pin
userid_userid19-Apr-05 3:43
userid_userid19-Apr-05 3:43 
Question"Secure Electronic Transaction" in C#? Pin
msdawy19-Apr-05 3:30
msdawy19-Apr-05 3:30 
GeneralComboBox problem Pin
vuthaianh19-Apr-05 2:44
vuthaianh19-Apr-05 2:44 
GeneralRe: ComboBox problem Pin
MoustafaS19-Apr-05 4:25
MoustafaS19-Apr-05 4:25 
GeneralGDI+ doublebuffering isnt stopping flicker :( Pin
JDUK19-Apr-05 2:16
JDUK19-Apr-05 2:16 
GeneralRe: GDI+ doublebuffering isnt stopping flicker :( Pin
John Fisher19-Apr-05 8:09
John Fisher19-Apr-05 8:09 
GeneralRe: GDI+ doublebuffering isnt stopping flicker :( Pin
Stefan Troschuetz19-Apr-05 8:48
Stefan Troschuetz19-Apr-05 8:48 
GeneralRe: GDI+ doublebuffering isnt stopping flicker :( Pin
JDUK19-Apr-05 11:12
JDUK19-Apr-05 11:12 
GeneralDockable / Floating / Collapsable Controls - Where to begin Pin
Tristan Rhodes19-Apr-05 2:04
Tristan Rhodes19-Apr-05 2:04 
GeneralRe: Dockable / Floating / Collapsable Controls - Where to begin Pin
leppie19-Apr-05 5:21
leppie19-Apr-05 5:21 
QuestionIs this how MemoryStreams works? Pin
Snowjim19-Apr-05 0:02
Snowjim19-Apr-05 0:02 
AnswerRe: Is this how MemoryStreams works? Pin
leppie19-Apr-05 5:19
leppie19-Apr-05 5:19 
GeneralRe: Is this how MemoryStreams works? Pin
Snowjim19-Apr-05 5:30
Snowjim19-Apr-05 5:30 
GeneralRe: Is this how MemoryStreams works? Pin
Steven Campbell19-Apr-05 6:42
Steven Campbell19-Apr-05 6:42 
QuestionWriting and Reading on MemoryStream? Pin
Snowjim18-Apr-05 23:57
Snowjim18-Apr-05 23:57 
AnswerRe: Writing and Reading on MemoryStream? Pin
leppie19-Apr-05 5:13
leppie19-Apr-05 5:13 

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.