Click here to Skip to main content
15,898,371 members
Home / Discussions / C#
   

C#

 
GeneralRe: Xor() Pin
James T. Johnson17-Apr-02 5:54
James T. Johnson17-Apr-02 5:54 
GeneralRe: Xor() Pin
Mazdak17-Apr-02 7:04
Mazdak17-Apr-02 7:04 
GeneralI don't have topic for this Pin
Mazdak17-Apr-02 3:44
Mazdak17-Apr-02 3:44 
GeneralRe: I don't have topic for this Pin
Rüpel18-Apr-02 2:15
Rüpel18-Apr-02 2:15 
GeneralRe: I don't have topic for this Pin
Mazdak18-Apr-02 5:23
Mazdak18-Apr-02 5:23 
GeneralRe: I don't have topic for this Pin
James T. Johnson18-Apr-02 5:53
James T. Johnson18-Apr-02 5:53 
GeneralWinForm Datagrid Control Pin
17-Apr-02 3:27
suss17-Apr-02 3:27 
GeneralRe: WinForm Datagrid Control Pin
James T. Johnson17-Apr-02 15:12
James T. Johnson17-Apr-02 15:12 
For #1 give this a shot

// columnIndex must be set to a number.
int columnIndex = 1;
// remove the second column
GridColumnStylesCollection myGridColumns;
myGridColumns = dataGrid1.TableStyles[0].GridColumnStyles;
myGridColumns.RemoveAt( columnIndex );
For #2 there try this block.

GridColumnStylesCollection myGridColumns;
myGridColumns = dataGrid.TableStyles[0].GridColumnStyles;
 
foreach(DataGridColumnStyle style in myGridColumns)
{
  // GetColumnWidth takes the header name and returns the width the column should be
  style.Width = GetColumnWidth(style.HeaderName);
}
HTH,

James

Simplicity Rules!
Generalmemstream to listview icon Pin
SimonS16-Apr-02 23:00
SimonS16-Apr-02 23:00 
GeneralRe: memstream to listview icon Pin
James T. Johnson17-Apr-02 2:06
James T. Johnson17-Apr-02 2:06 
QuestionCButton::GetState in .NET? Pin
Nish Nishant16-Apr-02 19:48
sitebuilderNish Nishant16-Apr-02 19:48 
AnswerRe: CButton::GetState in .NET? Pin
Nick Parker17-Apr-02 11:41
protectorNick Parker17-Apr-02 11:41 
GeneralRe: CButton::GetState in .NET? Pin
James T. Johnson17-Apr-02 11:53
James T. Johnson17-Apr-02 11:53 
GeneralRe: CButton::GetState in .NET? Pin
Nick Parker17-Apr-02 12:11
protectorNick Parker17-Apr-02 12:11 
GeneralRe: CButton::GetState in .NET? Pin
James T. Johnson17-Apr-02 12:21
James T. Johnson17-Apr-02 12:21 
GeneralRe: CButton::GetState in .NET? Pin
Nick Parker17-Apr-02 12:28
protectorNick Parker17-Apr-02 12:28 
GeneralNew VS.net Pin
16-Apr-02 11:27
suss16-Apr-02 11:27 
GeneralRe: New VS.net Pin
James T. Johnson16-Apr-02 11:54
James T. Johnson16-Apr-02 11:54 
GeneralRe: New VS.net Pin
franck_alain16-Apr-02 12:18
franck_alain16-Apr-02 12:18 
GeneralRe: New VS.net Pin
James T. Johnson16-Apr-02 12:35
James T. Johnson16-Apr-02 12:35 
GeneralRe: New VS.net Pin
James T. Johnson16-Apr-02 11:56
James T. Johnson16-Apr-02 11:56 
GeneralRe: New VS.net Pin
Nick Parker17-Apr-02 3:12
protectorNick Parker17-Apr-02 3:12 
GeneralRe: New VS.net Pin
franck_alain17-Apr-02 16:41
franck_alain17-Apr-02 16:41 
GeneralRe: New VS.net Pin
22-Apr-02 16:38
suss22-Apr-02 16:38 
GeneralRegistry Pin
Mazdak16-Apr-02 5:25
Mazdak16-Apr-02 5:25 

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.