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

C#

 
GeneralRe: Null Reference Exception while using threads Pin
Gareth H27-Jan-08 22:49
Gareth H27-Jan-08 22:49 
GeneralRe: Null Reference Exception while using threads Pin
DeepOceans28-Jan-08 18:36
DeepOceans28-Jan-08 18:36 
GeneralQuestion about PropertyGrid Pin
stancrm27-Jan-08 21:47
stancrm27-Jan-08 21:47 
GeneralRe: Question about PropertyGrid Pin
Mircea Puiu27-Jan-08 21:50
Mircea Puiu27-Jan-08 21:50 
GeneralRe: Question about PropertyGrid Pin
stancrm27-Jan-08 21:56
stancrm27-Jan-08 21:56 
GeneralRe: Question about PropertyGrid Pin
Mircea Puiu27-Jan-08 22:20
Mircea Puiu27-Jan-08 22:20 
GeneralRe: Question about PropertyGrid Pin
visualhint30-Jan-08 5:44
visualhint30-Jan-08 5:44 
Generalretrieving list of columns and along with their datatypes Pin
chanzeb27-Jan-08 21:33
chanzeb27-Jan-08 21:33 
GeneralRe: retrieving list of columns and along with their datatypes Pin
Gareth H27-Jan-08 22:46
Gareth H27-Jan-08 22:46 
QuestionSet DataGridView cell value if parse fails Pin
Noemi Katinka27-Jan-08 21:30
Noemi Katinka27-Jan-08 21:30 
GeneralRe: Set DataGridView cell value if parse fails Pin
Mircea Puiu27-Jan-08 21:49
Mircea Puiu27-Jan-08 21:49 
GeneralRe: Set DataGridView cell value if parse fails Pin
Noemi Katinka27-Jan-08 21:57
Noemi Katinka27-Jan-08 21:57 
GeneralRe: Set DataGridView cell value if parse fails Pin
Mircea Puiu27-Jan-08 22:24
Mircea Puiu27-Jan-08 22:24 
GeneralI need to change to Array Pin
Alex50127-Jan-08 20:19
Alex50127-Jan-08 20:19 
AnswerRe: I need to change to Array Pin
Kyle Rozendo27-Jan-08 21:07
Kyle Rozendo27-Jan-08 21:07 
GeneralRe: I need to change to Array Pin
Gareth H27-Jan-08 22:36
Gareth H27-Jan-08 22:36 
GeneralRe: I need to change to Array Pin
Kyle Rozendo27-Jan-08 23:32
Kyle Rozendo27-Jan-08 23:32 
GeneralRe: I need to change to Array Pin
Alex50128-Jan-08 7:13
Alex50128-Jan-08 7:13 
GeneralRe: I need to change to Array Pin
PIEBALDconsult28-Jan-08 9:37
mvePIEBALDconsult28-Jan-08 9:37 
GeneralRe: I need to change to Array Pin
Alex50130-Jan-08 17:56
Alex50130-Jan-08 17:56 
GeneralRe: I need to change to Array Pin
Jeeva Jose27-Jan-08 21:12
Jeeva Jose27-Jan-08 21:12 
GeneralRe: I need to change to Array Pin
PIEBALDconsult28-Jan-08 9:35
mvePIEBALDconsult28-Jan-08 9:35 
Questioninterface implementation Pin
avvaru.murali27-Jan-08 20:12
avvaru.murali27-Jan-08 20:12 
Hi,
This is my interface
DataTable FindAll();<br />


implementation is
<br />
 public DataTable FindAll()<br />
        {  String query = "SELECT * FROM Media";<br />
            DataTable dt = util.DatabaseManager.ExecuteQuery(ConnectionString, query, "outdoordata");<br />
            if (dt.Rows.Count == 0)<br />
            {<br />
                return null;<br />
            }<br />
            return new media(dt.rows[0]);------it is showing error "cannot implicitly convert media to system.data.datatable.<br />
}<br />
Here is media is class which done the following
<br />
public class media<br />
{<br />
public Media(DataRow dr)<br />
        {<br />
            if (dr["media_type_id"] != DBNull.Value)<br />
            {<br />
                this.media_type_id = Int32.Parse(dr["media_type_id"].ToString());<br />
            }<br />
            if (dr["description"] != DBNull.Value)<br />
            {<br />
                this.description = dr["description"].ToString();<br />
            }<br />
            if (dr["width"] != DBNull.Value)<br />
            {<br />
                this.width = Double.Parse(dr["width"].ToString());<br />
}<br />
<br />
}<br />
It is giving error is "cannot implicitly convert media to system.data.datable

murali krishna

GeneralRe: interface implementation Pin
Mircea Puiu27-Jan-08 20:53
Mircea Puiu27-Jan-08 20:53 
GeneralRegarding Firebird Pin
Praveen02927-Jan-08 20:08
Praveen02927-Jan-08 20:08 

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.