Click here to Skip to main content
15,901,368 members
Home / Discussions / C#
   

C#

 
GeneralRe: Container controls Pin
hasansheik15-Dec-05 6:03
hasansheik15-Dec-05 6:03 
GeneralRe: Container controls Pin
Sean Michael Murphy15-Dec-05 14:43
Sean Michael Murphy15-Dec-05 14:43 
QuestionHow to check the control is container control. Pin
hasansheik15-Dec-05 5:16
hasansheik15-Dec-05 5:16 
Questionexcel output Pin
dimx215-Dec-05 5:12
dimx215-Dec-05 5:12 
AnswerRe: excel output Pin
Curtis Schlak.15-Dec-05 11:13
Curtis Schlak.15-Dec-05 11:13 
GeneralRe: excel output Pin
dimx220-Dec-05 2:43
dimx220-Dec-05 2:43 
QuestionUsing CheckedListBox Pin
Gulfraz Khan15-Dec-05 4:47
Gulfraz Khan15-Dec-05 4:47 
QuestionHow do you use DataGridTableStyle with a strong typed collection derived from CollectionBase Pin
tcmgc15-Dec-05 4:44
tcmgc15-Dec-05 4:44 
I created a strong typed CollectionBase collection.
When I bind it to a DataGrid, it displays all the public properties for the class. I only want to display specific class properties. I tried to use the following code and it does not work.

How do you control what fields are displayed in the DataGrid?

private void BindArrayListToGrid()
{
// create some data
dataGrid1.DataSource = myCollection;
DataGridTableStyle ts = new DataGridTableStyle();
ts.MappingName = "ArrayList";

DataGridTextBoxColumn cs = new DataGridTextBoxColumn();
cs.MappingName = "id"; // Public property name
cs.HeaderText = "User ID";
cs.Width = 80;
ts.GridColumnStyles.Add(cs);

cs = new DataGridTextBoxColumn();
cs.MappingName = "name";
cs.HeaderText = "User Name";
cs.Width = 80;
ts.GridColumnStyles.Add(cs);

// Add the custom tablestyle to the DataGrid
this.dataGrid1.TableStyles.Clear();
this.dataGrid1.TableStyles.Add(ts);
}

TC
Questionproxi authentification Pin
Camilo Sanchez15-Dec-05 4:26
Camilo Sanchez15-Dec-05 4:26 
AnswerRe: proxi authentification Pin
S. Senthil Kumar15-Dec-05 4:46
S. Senthil Kumar15-Dec-05 4:46 
GeneralRe: proxi authentification Pin
Camilo Sanchez28-Dec-05 13:14
Camilo Sanchez28-Dec-05 13:14 
QuestionReading from Network & Writing Contents to a Local File Pin
farhan197615-Dec-05 4:24
farhan197615-Dec-05 4:24 
QuestionDataView not returning the correct rows Pin
gashach15-Dec-05 3:51
gashach15-Dec-05 3:51 
QuestionFile.Create method isn't releasing the file Pin
kornstyle15-Dec-05 3:26
kornstyle15-Dec-05 3:26 
AnswerRe: File.Create method isn't releasing the file Pin
Ingo15-Dec-05 3:49
Ingo15-Dec-05 3:49 
AnswerRe: File.Create method isn't releasing the file Pin
Polis Pilavas15-Dec-05 3:51
Polis Pilavas15-Dec-05 3:51 
QuestionChanging Screen Resolution through C# Pin
thepolishguy15-Dec-05 3:19
thepolishguy15-Dec-05 3:19 
AnswerRe: Changing Screen Resolution through C# Pin
Andy Moore15-Dec-05 3:35
Andy Moore15-Dec-05 3:35 
AnswerRe: Changing Screen Resolution through C# Pin
Dave Kreskowiak15-Dec-05 6:18
mveDave Kreskowiak15-Dec-05 6:18 
GeneralRe: Changing Screen Resolution through C# Pin
Dan Neely16-Dec-05 3:16
Dan Neely16-Dec-05 3:16 
Questionfaxing from C# via Send Fax Wizard Pin
cobra200515-Dec-05 3:00
cobra200515-Dec-05 3:00 
AnswerRe: faxing from C# via Send Fax Wizard Pin
albCode15-Dec-05 6:13
albCode15-Dec-05 6:13 
GeneralRe: faxing from C# via Send Fax Wizard Pin
cobra200515-Dec-05 6:31
cobra200515-Dec-05 6:31 
GeneralRe: faxing from C# via Send Fax Wizard Pin
albCode15-Dec-05 6:43
albCode15-Dec-05 6:43 
GeneralRe: faxing from C# via Send Fax Wizard Pin
cobra200515-Dec-05 8:02
cobra200515-Dec-05 8:02 

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.