Click here to Skip to main content
15,895,824 members
Home / Discussions / C#
   

C#

 
GeneralRe: Replace PDF Pages Pin
Killzone DeathMan15-May-12 1:06
Killzone DeathMan15-May-12 1:06 
QuestionTableLayoutPanel AutoSize Pin
Ronny Portier14-May-12 8:07
Ronny Portier14-May-12 8:07 
QuestionObject reference not set to an instance of an object Pin
Jassim Rahma14-May-12 6:29
Jassim Rahma14-May-12 6:29 
AnswerRe: Object reference not set to an instance of an object Pin
Richard MacCutchan14-May-12 6:36
mveRichard MacCutchan14-May-12 6:36 
AnswerRe: Object reference not set to an instance of an object Pin
Sandeep Mewara14-May-12 9:18
mveSandeep Mewara14-May-12 9:18 
GeneralRe: Object reference not set to an instance of an object Pin
Dave Kreskowiak14-May-12 9:28
mveDave Kreskowiak14-May-12 9:28 
GeneralRe: Object reference not set to an instance of an object Pin
Sandeep Mewara14-May-12 9:31
mveSandeep Mewara14-May-12 9:31 
GeneralRe: Object reference not set to an instance of an object Pin
Jassim Rahma15-May-12 4:41
Jassim Rahma15-May-12 4:41 
but I can't see where is the problem specially it's working fine my laptop when I connect to local and remote database.

here is the code:

C#
private void populate_family_physician()
{
    this.Cursor = Cursors.WaitCursor;

    data_table = new DataTable();

    sql_connection = new MySqlConnection(ConfigurationManager.ConnectionStrings["SQLdb"].ConnectionString);

    // try
    // {
    sql_connection.Open();
    sql_command = new MySqlCommand("sp_get_pricelist_by_code", sql_connection);
    sql_command.CommandType = CommandType.StoredProcedure;
    sql_command.Parameters.AddWithValue("param_pricelist_code", "FamilyPhysician").MySqlDbType = MySqlDbType.VarChar;
    sql_adapter = new MySqlDataAdapter(sql_command);
    sql_adapter.Fill(data_table);
    dataFamilyPhysician.DataSource = null;
    dataFamilyPhysician.ResetBindings();
    dataFamilyPhysician.DataSource = data_table;

    gridFamilyPhysician.Columns["price_list_id"].Caption = "price_list_id";
    gridFamilyPhysician.Columns["price_list_id"].AppearanceHeader.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center;
    gridFamilyPhysician.Columns["price_list_id"].AppearanceCell.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center;
    gridFamilyPhysician.Columns["price_list_id"].Width = 80;
    gridFamilyPhysician.Columns["price_list_id"].Visible = false;

    gridFamilyPhysician.Columns["price_list_description"].Caption = "Description";
    gridFamilyPhysician.Columns["price_list_description"].AppearanceHeader.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Default;
    gridFamilyPhysician.Columns["price_list_description"].AppearanceCell.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Default;
    gridFamilyPhysician.Columns["price_list_description"].Width = 150;

    gridFamilyPhysician.Columns["price_list_price"].Caption = "Price";
    gridFamilyPhysician.Columns["price_list_price"].AppearanceHeader.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center;
    gridFamilyPhysician.Columns["price_list_price"].AppearanceCell.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center;
    gridFamilyPhysician.Columns["price_list_price"].DisplayFormat.FormatType = DevExpress.Utils.FormatType.Numeric;
    gridFamilyPhysician.Columns["price_list_price"].DisplayFormat.FormatString = "#,###,##0.000";
    gridFamilyPhysician.Columns["price_list_price"].Width = 50;

    this.Cursor = Cursors.Default;
}

GeneralRe: Object reference not set to an instance of an object Pin
Sandeep Mewara15-May-12 5:47
mveSandeep Mewara15-May-12 5:47 
GeneralRe: Object reference not set to an instance of an object Pin
Bernhard Hiller15-May-12 20:56
Bernhard Hiller15-May-12 20:56 
AnswerRe: Object reference not set to an instance of an object Pin
Bernhard Hiller14-May-12 21:23
Bernhard Hiller14-May-12 21:23 
GeneralRe: Object reference not set to an instance of an object Pin
Jassim Rahma16-May-12 5:59
Jassim Rahma16-May-12 5:59 
Questionfinding unmatched record/data in two sql tables Pin
James_201214-May-12 6:25
James_201214-May-12 6:25 
AnswerRe: finding unmatched record/data in two sql tables Pin
Dave Kreskowiak14-May-12 7:08
mveDave Kreskowiak14-May-12 7:08 
GeneralRe: finding unmatched record/data in two sql tables Pin
PIEBALDconsult14-May-12 7:47
mvePIEBALDconsult14-May-12 7:47 
AnswerRe: finding unmatched record/data in two sql tables Pin
Sentenryu14-May-12 8:47
Sentenryu14-May-12 8:47 
GeneralRe: finding unmatched record/data in two sql tables Pin
James_201214-May-12 9:56
James_201214-May-12 9:56 
GeneralRe: finding unmatched record/data in two sql tables Pin
James_201214-May-12 10:00
James_201214-May-12 10:00 
AnswerRe: finding unmatched record/data in two sql tables Pin
Sentenryu15-May-12 1:31
Sentenryu15-May-12 1:31 
GeneralRe: finding unmatched record/data in two sql tables Pin
James_201215-May-12 6:08
James_201215-May-12 6:08 
GeneralRe: finding unmatched record/data in two sql tables Pin
James_201215-May-12 7:36
James_201215-May-12 7:36 
GeneralRe: finding unmatched record/data in two sql tables Pin
Sentenryu15-May-12 7:55
Sentenryu15-May-12 7:55 
GeneralRe: finding unmatched record/data in two sql tables Pin
James_201215-May-12 9:08
James_201215-May-12 9:08 
GeneralRe: finding unmatched record/data in two sql tables Pin
ArchimaX16-May-12 4:52
ArchimaX16-May-12 4:52 
GeneralRe: finding unmatched record/data in two sql tables Pin
Sentenryu16-May-12 5:55
Sentenryu16-May-12 5:55 

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.