Click here to Skip to main content
15,910,886 members
Home / Discussions / C#
   

C#

 
Questionunable to launch C sharp Windows application using Windows 7 Pin
Member 961158422-May-13 4:08
Member 961158422-May-13 4:08 
AnswerRe: unable to launch C sharp Windows application using Windows 7 Pin
Pete O'Hanlon22-May-13 6:00
mvePete O'Hanlon22-May-13 6:00 
QuestionMake datagridview selected row invisible Pin
geralson22-May-13 1:41
geralson22-May-13 1:41 
AnswerRe: Make datagridview selected row invisible Pin
Richard MacCutchan22-May-13 2:42
mveRichard MacCutchan22-May-13 2:42 
GeneralRe: Make datagridview selected row invisible Pin
geralson22-May-13 3:32
geralson22-May-13 3:32 
QuestionExcel without excel Pin
caradri22-May-13 0:34
caradri22-May-13 0:34 
AnswerRe: Excel without excel Pin
Richard Deeming22-May-13 1:46
mveRichard Deeming22-May-13 1:46 
AnswerRe: Excel without excel Pin
PIEBALDconsult22-May-13 5:03
mvePIEBALDconsult22-May-13 5:03 
GeneralRe: Excel without excel Pin
caradri22-May-13 5:19
caradri22-May-13 5:19 
Question2D Array Managed and Unmanaged code Data Marshling Pin
Subhash Madhukar21-May-13 22:34
Subhash Madhukar21-May-13 22:34 
AnswerRe: 2D Array Managed and Unmanaged code Data Marshling Pin
David Knechtges22-May-13 3:28
David Knechtges22-May-13 3:28 
QuestionQuestion about constructors of a class Pin
Arun kumar Gautam21-May-13 18:22
Arun kumar Gautam21-May-13 18:22 
AnswerRe: Question about constructors of a class Pin
PIEBALDconsult21-May-13 18:50
mvePIEBALDconsult21-May-13 18:50 
GeneralRe: Question about constructors of a class Pin
Arun kumar Gautam21-May-13 19:06
Arun kumar Gautam21-May-13 19:06 
AnswerRe: Question about constructors of a class PinPopular
Pete O'Hanlon21-May-13 20:21
mvePete O'Hanlon21-May-13 20:21 
GeneralRe: Question about constructors of a class Pin
Arun kumar Gautam21-May-13 20:43
Arun kumar Gautam21-May-13 20:43 
AnswerRe: Question about constructors of a class Pin
DaveyM6921-May-13 22:12
professionalDaveyM6921-May-13 22:12 
AnswerRe: Question about constructors of a class Pin
harold aptroot22-May-13 3:49
harold aptroot22-May-13 3:49 
QuestionSome Columns of DataGridView Wont Accept Values Pin
matt_1ca21-May-13 17:51
matt_1ca21-May-13 17:51 
AnswerRe: Some Columns of DataGridView Wont Accept Values Pin
matt_1ca21-May-13 18:30
matt_1ca21-May-13 18:30 
CSS
While banging my head trying to find an answer  :^)  ... below is what I did to test it further and gain more insight .. I changed the values as described below with result also indicated:

Change 1: I changed all the values pushed to the 48 columns to be the string  "Writing here"
Result  : About six columns responded and reflected the change

Change 2: I then proceeded to change the value from "Writing here" to the number 68
Result  : 30+ columns have responded and reflected the new value 68

This is good and indicates that the type of data pushed have an influence on whether the value actually gets to land in the grid or not.

Unfortunately, the particular column whose cells I am interested in altering remains unaffected so there seems something odd about it ...

All the columns get populated on the fly via a stored procedure that is mapped to a dataadapter that is created inside a .xsd file.

The one odd thing about the particular column I want to affect via code is that it is not actually a column existing in a table instead it is created via with a little t-sql
manipulation in the select statement of the stored procedure alongside the other normal columns similar to the one shown

Select NormalColumnActuallyExisting1,
       NormalColumnActuallyExisting2,
       NormalColumnActuallyExisting3,
       ColumnCreatedOnFly = Case When NormalColumnActuallyExisting1 = 1 then ...
                                 When NormalColumnActuallyExisting2 = 1 then ...
                                 When NormalColumnActuallyExisting3 = 1 then ...
                                 Else  ...
                            End
       NormalColumnActuallyExisting3,
...

The odd (ColumnCreatedOnFly) gets populated with a hardcoded string based on the bit values of NormalColumnActuallyExisting1, NormalColumnActuallyExisting2 and        NormalColumnActuallyExisting3 columns so it really puzzles me why it wont accept the string in the Change 1 I have described above...

So I did the changes below:


Change 3: I then proceeded to change the value from 68 to the boolean true
Result  : The odd column whose value I want to change still remains unaffected

Change 4: I then proceeded to change the value from true to the integer 0 (for bit)
Result  : The odd column whose value I want to change still remains unaffected

All I want is to be able to push a string in that said odd column but finding the grid not cooperating with me right now ... so is there a way for me to make it happen ... thanks again for all the help I really appreciate it.

GeneralRe: Some Columns of DataGridView Wont Accept Values Pin
matt_1ca22-May-13 14:57
matt_1ca22-May-13 14:57 
GeneralRe: Some Columns of DataGridView Wont Accept Values Pin
matt_1ca22-May-13 15:11
matt_1ca22-May-13 15:11 
QuestionTo Throw or Not To Throw Pin
Kevin Marois21-May-13 12:39
professionalKevin Marois21-May-13 12:39 
AnswerRe: To Throw or Not To Throw Pin
Garth J Lancaster21-May-13 13:19
professionalGarth J Lancaster21-May-13 13:19 
AnswerRe: To Throw or Not To Throw Pin
SledgeHammer0121-May-13 13:37
SledgeHammer0121-May-13 13:37 

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.