Click here to Skip to main content
15,889,034 members
Home / Discussions / C#
   

C#

 
AnswerRe: Default value selected in Combo Box after another form closes. Pin
atulonweb@hotmail.com20-Jun-07 21:31
atulonweb@hotmail.com20-Jun-07 21:31 
GeneralRe: Default value selected in Combo Box after another form closes. Pin
bhoomi kakaiya21-Jun-07 4:24
bhoomi kakaiya21-Jun-07 4:24 
GeneralRe: Default value selected in Combo Box after another form closes. Pin
~~~Johnny~~~21-Jun-07 6:20
~~~Johnny~~~21-Jun-07 6:20 
Questioncode to store the original array index of the sorted array Pin
Arun Raj.K20-Jun-07 5:43
Arun Raj.K20-Jun-07 5:43 
QuestionDataSet does not support System.Nullable Pin
Brady Kelly20-Jun-07 5:25
Brady Kelly20-Jun-07 5:25 
AnswerRe: DataSet does not support System.Nullable PinPopular
Lisa Jorgensen20-Jun-07 7:29
Lisa Jorgensen20-Jun-07 7:29 
GeneralRe: DataSet does not support System.Nullable Pin
Brady Kelly20-Jun-07 7:47
Brady Kelly20-Jun-07 7:47 
SuggestionRe: DataSet does not support System.Nullable Pin
WiiMaxx24-Apr-14 1:29
WiiMaxx24-Apr-14 1:29 
instead of your

C#
if (propType.IsGenericType &&
    propType.GetGenericTypeDefinition() == typeof(Nullable<>))
    {
        propType = Nullable.GetUnderlyingType(propType);
    }


you could also do

C#
column.DataType = Nullable.GetUnderlyingType(PropertyType) ?? PropertyType;


depending on your knowledge about the ?? operator and your preferences it could improve the readability
QuestionAdvanced Search Pin
arslanjatt20-Jun-07 5:10
arslanjatt20-Jun-07 5:10 
AnswerRe: Advanced Search Pin
nateraaaa20-Jun-07 5:56
nateraaaa20-Jun-07 5:56 
Questionevent extender providers? Pin
TheShaver20-Jun-07 4:48
TheShaver20-Jun-07 4:48 
AnswerRe: event extender providers? Pin
Luc Pattyn20-Jun-07 4:52
sitebuilderLuc Pattyn20-Jun-07 4:52 
GeneralRe: event extender providers? Pin
TheShaver20-Jun-07 5:14
TheShaver20-Jun-07 5:14 
AnswerRe: event extender providers? Pin
Martin#20-Jun-07 4:57
Martin#20-Jun-07 4:57 
GeneralRe: event extender providers? Pin
TheShaver20-Jun-07 5:11
TheShaver20-Jun-07 5:11 
AnswerRe: event extender providers? Pin
Martin#20-Jun-07 5:07
Martin#20-Jun-07 5:07 
GeneralRe: event extender providers? Pin
TheShaver20-Jun-07 5:20
TheShaver20-Jun-07 5:20 
GeneralRe: event extender providers? Pin
Martin#20-Jun-07 5:23
Martin#20-Jun-07 5:23 
QuestionAnyone know of a web service like this? Pin
gantww20-Jun-07 4:30
gantww20-Jun-07 4:30 
AnswerRe: Anyone know of a web service like this? Pin
nateraaaa20-Jun-07 6:06
nateraaaa20-Jun-07 6:06 
QuestionTaking control of an already running process.. Pin
Ylno20-Jun-07 4:26
Ylno20-Jun-07 4:26 
AnswerRe: Taking control of an already running process.. Pin
Martin#20-Jun-07 4:29
Martin#20-Jun-07 4:29 
QuestionError in Web.Config page Pin
shyamts20-Jun-07 3:59
shyamts20-Jun-07 3:59 
AnswerRe: Error in Web.Config page Pin
Manas Bhardwaj20-Jun-07 4:02
professionalManas Bhardwaj20-Jun-07 4:02 
AnswerRe: Error in Web.Config page Pin
Not Active20-Jun-07 4:28
mentorNot Active20-Jun-07 4:28 

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.