Click here to Skip to main content
15,890,512 members
Home / Discussions / C#
   

C#

 
GeneralRe: args in main Pin
Igor Velikorossov23-Mar-06 10:54
Igor Velikorossov23-Mar-06 10:54 
GeneralRe: args in main Pin
Igor Velikorossov23-Mar-06 10:53
Igor Velikorossov23-Mar-06 10:53 
GeneralRe: args in main Pin
nogola23-Mar-06 10:58
nogola23-Mar-06 10:58 
GeneralRe: args in main Pin
Igor Velikorossov23-Mar-06 11:03
Igor Velikorossov23-Mar-06 11:03 
GeneralRe: args in main Pin
nogola23-Mar-06 11:13
nogola23-Mar-06 11:13 
GeneralRe: args in main Pin
nogola23-Mar-06 11:16
nogola23-Mar-06 11:16 
GeneralRe: args in main Pin
Igor Velikorossov23-Mar-06 11:19
Igor Velikorossov23-Mar-06 11:19 
QuestionCasting a value to an enum type Pin
TeamWild23-Mar-06 9:17
TeamWild23-Mar-06 9:17 
I'm trying to create a custom datagrid column that is populated with values from any enumerated type passed when the object is constructed.

I pass in the type like this:
 <code>
public DataGridEnumDropdownColumn( Type enumType )
</code> 

The type is used to populate the dropdown list.

In the overridden Edit method of the DataGridColumnStyle I want to set the selected value of the combo box.

The code I have so far (shown below) retrieves the value of the column (the value of the enum) but I'm unable to cast it to the enumerated type.
 <code>
object colValue = GetColumnValueAtRow( source, Rownum);

Combo.SelectedValue = (?????)colValue;
</code> 

Any help would be greatly appreciated.
AnswerRe: Casting a value to an enum type Pin
paulhj23-Mar-06 9:53
paulhj23-Mar-06 9:53 
NewsRe: Casting a value to an enum type Pin
Igor Velikorossov23-Mar-06 11:03
Igor Velikorossov23-Mar-06 11:03 
GeneralRe: Casting a value to an enum type Pin
spin vector23-Mar-06 11:08
spin vector23-Mar-06 11:08 
GeneralRe: Casting a value to an enum type Pin
Igor Velikorossov23-Mar-06 11:13
Igor Velikorossov23-Mar-06 11:13 
AnswerRe: Casting a value to an enum type Pin
TeamWild23-Mar-06 23:23
TeamWild23-Mar-06 23:23 
Questionscripting language with C# Pin
Inuyasha96323-Mar-06 7:17
Inuyasha96323-Mar-06 7:17 
AnswerRe: scripting language with C# Pin
Roland Bär23-Mar-06 8:20
Roland Bär23-Mar-06 8:20 
AnswerRe: scripting language with C# Pin
Ed.Poore23-Mar-06 12:23
Ed.Poore23-Mar-06 12:23 
QuestionC# imaging Pin
XeoN-Kc23-Mar-06 6:50
XeoN-Kc23-Mar-06 6:50 
AnswerRe: C# imaging Pin
Ravi Bhavnani23-Mar-06 7:04
professionalRavi Bhavnani23-Mar-06 7:04 
Questionballoon tooltips in .net 2.0 Pin
Mridang Agarwalla23-Mar-06 6:39
Mridang Agarwalla23-Mar-06 6:39 
AnswerRe: balloon tooltips in .net 2.0 Pin
Ravi Bhavnani23-Mar-06 6:49
professionalRavi Bhavnani23-Mar-06 6:49 
GeneralRe: balloon tooltips in .net 2.0 Pin
Mridang Agarwalla23-Mar-06 18:13
Mridang Agarwalla23-Mar-06 18:13 
GeneralRe: balloon tooltips in .net 2.0 Pin
moon_stick24-Mar-06 0:57
moon_stick24-Mar-06 0:57 
GeneralRe: balloon tooltips in .net 2.0 Pin
Ravi Bhavnani24-Mar-06 1:53
professionalRavi Bhavnani24-Mar-06 1:53 
AnswerRe: balloon tooltips in .net 2.0 Pin
Luis Alonso Ramos24-Mar-06 5:39
Luis Alonso Ramos24-Mar-06 5:39 
QuestionUsing a C DLL in a C# Application... Pin
signbit23-Mar-06 6:04
signbit23-Mar-06 6:04 

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.