Click here to Skip to main content
15,887,350 members
Home / Discussions / C#
   

C#

 
Questionspeech to text Pin
mahmoud_sam13-Feb-06 10:08
mahmoud_sam13-Feb-06 10:08 
QuestionTalking to Data Base Problem Pin
ytubis13-Feb-06 9:35
ytubis13-Feb-06 9:35 
AnswerRe: Talking to Data Base Problem Pin
Michael Potter13-Feb-06 9:58
Michael Potter13-Feb-06 9:58 
GeneralRe: Talking to Data Base Problem Pin
ytubis13-Feb-06 10:19
ytubis13-Feb-06 10:19 
QuestionBindingSource: BEFORE CurrentChanged? Pin
moon4413-Feb-06 9:26
moon4413-Feb-06 9:26 
AnswerRe: BindingSource: BEFORE CurrentChanged? Pin
VMSSanthosh13-Feb-06 22:32
VMSSanthosh13-Feb-06 22:32 
GeneralRe: BindingSource: BEFORE CurrentChanged? Pin
moon4414-Feb-06 6:14
moon4414-Feb-06 6:14 
QuestionDataGridView Columns Pin
Wjousts13-Feb-06 9:08
Wjousts13-Feb-06 9:08 
I noticed something weird with the DataGridView.Columns. I set up a DataGridView on my form and I wanted to set a DataTable as the DataSource. When I did this all of my columns are displayed, but I only wanted to have some of them displayed. With a DataGrid I would just use the DataGridTableStyle object, but they don't work with DataGridView. So instead I set at design time all the columns I want to see displayed and map them to the column names in the DataTable using DataPropertyName of each column. This works, in that the data from the table get displayed in the right columns, but the DataGridView rather unhelpfully decides to fill in all the missing columns too. So I add all the missing columns at design time but set them to be not visible. Now this seems to work fine.
Next I decided I'd like to be able to toggle the visibility of some of the columns. So I set up some menu options and try to toggle the visibility using the Column object I set up at design time. Some like this:
colMyColumn.Visible = !colMyColumn.Visible;

This works fine before I bind my DataTable, but not afterwards. After binding colMyColumn is no longer a member of the DataGridView's Column collection. I.e.
MyDataGridView.Columns.Contains(colMyColumn);

Returns false. However, this:
MyDataGridView.Columns["colMyColumn"];

Returns the correct column that is a member of the column collection. My question is why does colMyColumn no longer hold a reference to the same object as the one in the column collection? Why has the DataGridView appear to have cloned it when it bound to the DataTable? What is going on here?

Thanks
QuestionChanging number formats Pin
Dan Neely13-Feb-06 8:35
Dan Neely13-Feb-06 8:35 
AnswerRe: Changing number formats Pin
Dan Neely13-Feb-06 9:05
Dan Neely13-Feb-06 9:05 
AnswerRe: Changing number formats Pin
Joshua Quick13-Feb-06 12:09
Joshua Quick13-Feb-06 12:09 
QuestionEdit Oracle Objects from C# Pin
sam31513-Feb-06 8:30
sam31513-Feb-06 8:30 
AnswerRe: Edit Oracle Objects from C# Pin
George L. Jackson13-Feb-06 14:07
George L. Jackson13-Feb-06 14:07 
QuestionHow to serialize and deserialize Cursor? Pin
Rashid.Mahmood13-Feb-06 7:52
Rashid.Mahmood13-Feb-06 7:52 
AnswerRe: How to serialize and deserialize Cursor? Pin
Dave Kreskowiak13-Feb-06 17:29
mveDave Kreskowiak13-Feb-06 17:29 
GeneralRe: How to serialize and deserialize Cursor? Pin
Rashid.Mahmood13-Feb-06 20:17
Rashid.Mahmood13-Feb-06 20:17 
GeneralRe: How to serialize and deserialize Cursor? Pin
Dave Kreskowiak14-Feb-06 2:21
mveDave Kreskowiak14-Feb-06 2:21 
QuestionText to Speech Pin
de_Oracle13-Feb-06 6:54
de_Oracle13-Feb-06 6:54 
AnswerRe: Text to Speech Pin
Judah Gabriel Himango13-Feb-06 7:18
sponsorJudah Gabriel Himango13-Feb-06 7:18 
GeneralRe: Text to Speech Pin
de_Oracle14-Feb-06 6:35
de_Oracle14-Feb-06 6:35 
Questioni need to send query string value from my page to my error page in C#.NET Pin
ap_sa13-Feb-06 6:27
ap_sa13-Feb-06 6:27 
GeneralRe: i need to send query string value from my page to my error page in C#.NET Pin
Guffa13-Feb-06 7:26
Guffa13-Feb-06 7:26 
Questionwaiting but still recieving messages....is there a way? Pin
nick15813-Feb-06 6:14
nick15813-Feb-06 6:14 
AnswerRe: waiting but still recieving messages....is there a way? Pin
Robin Panther13-Feb-06 7:02
Robin Panther13-Feb-06 7:02 
GeneralRe: waiting but still recieving messages....is there a way? Pin
nick15813-Feb-06 8:00
nick15813-Feb-06 8:00 

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.