Click here to Skip to main content
15,922,584 members
Home / Discussions / C#
   

C#

 
Questionhow to generalize Pin
Petenasa24-Feb-08 21:47
Petenasa24-Feb-08 21:47 
GeneralRe: how to generalize Pin
Christian Graus24-Feb-08 22:01
protectorChristian Graus24-Feb-08 22:01 
QuestionAttributes of Directory ?? Pin
Neo Andreson24-Feb-08 21:28
Neo Andreson24-Feb-08 21:28 
AnswerRe: Attributes of Directory ?? Pin
Giorgi Dalakishvili24-Feb-08 21:36
mentorGiorgi Dalakishvili24-Feb-08 21:36 
AnswerRe: Attributes of Directory ?? Pin
stancrm24-Feb-08 21:40
stancrm24-Feb-08 21:40 
GeneralRe: Attributes of Directory ?? Pin
Neo Andreson24-Feb-08 23:00
Neo Andreson24-Feb-08 23:00 
GeneralRe: Attributes of Directory ?? Pin
stancrm24-Feb-08 23:03
stancrm24-Feb-08 23:03 
QuestionComboBox DataRowView Problem [modified] Pin
abed almuti zalloum24-Feb-08 20:14
abed almuti zalloum24-Feb-08 20:14 
Hello all

I have a problem in ComboBox Selecteditem, the DropDownStyle property for ComboBox is DropDownList and the datasource for ComboBox is Untype DataSet, and when I use Selecteditem property in comboBox the .NET compiler gave me error, and this is my code below:

---- Fill ComboBox From DataSet ---

DataSet dsAcc = new DataSet();
FillDsAcc(dsAcc);
if(dsAcc.Tables.Contains("ACCTYPE"))
{
CMBDecoreKind.DataSource=dsAcc.Tables["ACCTYPE"].DefaultView; CMBDecoreKind.DisplayMember="ACC_TYPE_DESC";
}

---- Set the CMBDecoreKind SelectItem ---

DataRow[] aRows=dsAcc.Tables["ACCTYPE"].Select("ACC_TYPE_ID=" + AccTypeID);
foreach (DataRow dr in aRows)
{

// CMBDecoreKind.SelectedItem = ((DataRowView) dr) ; // can't convert DataRow To DataRowView

}

The comment line "CMBDecoreKind.SelectedItem..." have a problem.

And the error message is:

Can anybody help me,
thanks in advance

modified on Monday, February 25, 2008 3:59 AM

GeneralPreviewing MP4 file Pin
N a v a n e e t h24-Feb-08 20:09
N a v a n e e t h24-Feb-08 20:09 
GeneralRe: Previewing MP4 file Pin
ChrisKo25-Feb-08 11:11
ChrisKo25-Feb-08 11:11 
GeneralRe: Previewing MP4 file Pin
N a v a n e e t h25-Feb-08 15:20
N a v a n e e t h25-Feb-08 15:20 
Generalc# call fortran dll,stack overflow Pin
wenshengluo24-Feb-08 19:42
wenshengluo24-Feb-08 19:42 
GeneralRe: c# call fortran dll,stack overflow Pin
Christian Graus24-Feb-08 19:58
protectorChristian Graus24-Feb-08 19:58 
GeneralRe: c# call fortran dll,stack overflow Pin
wenshengluo25-Feb-08 13:55
wenshengluo25-Feb-08 13:55 
GeneralApplication does not run on Laptops Pin
rozhanin24-Feb-08 19:39
rozhanin24-Feb-08 19:39 
GeneralRe: Application does not run on Laptops Pin
Christian Graus24-Feb-08 19:56
protectorChristian Graus24-Feb-08 19:56 
GeneralRe: Application does not run on Laptops Pin
rozhanin25-Feb-08 0:44
rozhanin25-Feb-08 0:44 
Question(C#) Is there something like GetObjectInstanceByName("myObj1")?? Pin
zeopyrix24-Feb-08 19:26
zeopyrix24-Feb-08 19:26 
AnswerRe: (C#) Is there something like GetObjectInstanceByName("myObj1")?? Pin
Christian Graus24-Feb-08 19:59
protectorChristian Graus24-Feb-08 19:59 
GeneralRe: (C#) Is there something like GetObjectInstanceByName("myObj1")?? Pin
zeopyrix24-Feb-08 20:06
zeopyrix24-Feb-08 20:06 
GeneralRe: (C#) Is there something like GetObjectInstanceByName("myObj1")?? Pin
Christian Graus24-Feb-08 20:14
protectorChristian Graus24-Feb-08 20:14 
Questionproblem while retriving image from database. [modified] Pin
avvaru.murali24-Feb-08 19:24
avvaru.murali24-Feb-08 19:24 
GeneralRe: problem while image from database. Pin
Christian Graus24-Feb-08 19:32
protectorChristian Graus24-Feb-08 19:32 
QuestionRe: problem while retrving image from database. Pin
avvaru.murali24-Feb-08 19:40
avvaru.murali24-Feb-08 19:40 
GeneralRe: problem while retrving image from database. Pin
Christian Graus24-Feb-08 20:00
protectorChristian Graus24-Feb-08 20: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.