Ask a Question related to Adobe Acrobat Macintosh, Design and Development.

  1. #1

    Default Need Help Please!

    ok here's the code and bellow i explain the problem

    // Create new data view
    DataView BottomDataView = new DataView();

    // Give dataview the datatable
    BottomDataView.Table = myBottomDT;

    DataTable myNewBottomDT = new DataTable("myNewBottomDT1");
    DataRow myNewBottomDR;

    #region Table Columns

    // Define the columns of the table.
    for (int i = 0; i < BottomDataView.Table.Columns.Count; i++)
    {
    switch (BottomDataView.Table.Columns[i].ColumnName.ToString())
    {
    case "id_futures":
    myNewBottomDT.Columns.Add("Futures");
    break;

    case "id_planner":
    myNewBottomDT.Columns.Add("Responsible");
    break;

    case "cd_commodity":
    myNewBottomDT.Columns.Add("Commodity<BR>Service");
    break;

    case "tx_desc":
    myNewBottomDT.Columns.Add("Description");
    break;

    case "qy_leadtime":
    myNewBottomDT.Columns.Add("Lead Time");
    break;

    case "dt_planning_def":
    myNewBottomDT.Columns.Add("Need Date");
    break;

    case "fl_memo":
    myNewBottomDT.Columns.Add("Memo Only");
    break;

    case "qy_hrs_est":
    myNewBottomDT.Columns.Add("Man Hrs Est");
    break;

    case "qy_hrs_act":
    myNewBottomDT.Columns.Add("Man Hrs Act");
    break;

    case "cd_cmmt":
    myNewBottomDT.Columns.Add("Type");
    break;

    case "id_cmmt":
    myNewBottomDT.Columns.Add("Document #");
    break;

    case "id_vendor_no":
    myNewBottomDT.Columns.Add("Vendor");
    break;

    case "id_po":
    myNewBottomDT.Columns.Add("PO #");
    break;

    default:
    myNewBottomDT.Columns.Add(BottomDataView.Table.Col umns[i].ColumnName.ToString());
    break;
    }

    }

    myNewBottomDT.Columns.Add("Remove");

    #endregion

    #region Table Rows

    foreach (DataRowView myDRV in BottomDataView)
    {
    myNewBottomDR = myNewBottomDT.NewRow();

    for (int i = 0; i < BottomDataView.Table.Columns.Count; i++)
    {
    switch (BottomDataView.Table.Columns[i].ColumnName.ToString())
    {
    case "fl_memo":
    if ( myDRV[i].ToString() == "1" )
    {
    myNewBottomDR[i] = "Yes";
    }
    else
    {
    myNewBottomDR[i] = "No";
    }
    break;

    default:
    myNewBottomDR[i] = myDRV[i];
    break;
    }

    }

    myNewBottomDT.Rows.Add(myNewBottomDR);
    }

    #endregion


    int temp = myNewBottomDT.Rows.Count;
    int nextFutureId = Convert.ToInt32(
    myNewBottomDT.Rows[temp-1]["Futures"].ToString() ) + 1 ;


    //there is a problem here not sure y
    myNewBottomDR = myNewBottomDT.NewRow();
    myNewBottomDT.Rows.Add(myNewBottomDR);


    DataView myNewBottomDV = new DataView(myNewBottomDT);
    DGPlanningStatusBottom.DataSource = myNewBottomDV;
    DGPlanningStatusBottom.DataBind();


    if i DON'T include the blank row all postback's are working fine all
    event's are triggered, but when i had the blank row before binding the
    DT/DV to the datagrid i receive the following error and NO EVENT's are
    triggered at all
    toytoto Guest

  2. #2

    Default Re: Need Help Please!

    is there any body out there that could help me on this just lost like
    over a week trying to make this work realy going crazy with this


    [email]daniel_st.pierre@fpl.com[/email] (toytoto) wrote in message news:<4ae1aadb.0409091130.4a2ea7f7@posting.google. com>...
    > ok here's the code and bellow i explain the problem
    >
    > // Create new data view
    > DataView BottomDataView = new DataView();
    >
    > // Give dataview the datatable
    > BottomDataView.Table = myBottomDT;
    >
    > DataTable myNewBottomDT = new DataTable("myNewBottomDT1");
    > DataRow myNewBottomDR;
    >
    > #region Table Columns
    >
    > // Define the columns of the table.
    > for (int i = 0; i < BottomDataView.Table.Columns.Count; i++)
    > {
    > switch (BottomDataView.Table.Columns[i].ColumnName.ToString())
    > {
    > case "id_futures":
    > myNewBottomDT.Columns.Add("Futures");
    > break;
    >
    > case "id_planner":
    > myNewBottomDT.Columns.Add("Responsible");
    > break;
    >
    > case "cd_commodity":
    > myNewBottomDT.Columns.Add("Commodity<BR>Service");
    > break;
    >
    > case "tx_desc":
    > myNewBottomDT.Columns.Add("Description");
    > break;
    >
    > case "qy_leadtime":
    > myNewBottomDT.Columns.Add("Lead Time");
    > break;
    >
    > case "dt_planning_def":
    > myNewBottomDT.Columns.Add("Need Date");
    > break;
    >
    > case "fl_memo":
    > myNewBottomDT.Columns.Add("Memo Only");
    > break;
    >
    > case "qy_hrs_est":
    > myNewBottomDT.Columns.Add("Man Hrs Est");
    > break;
    >
    > case "qy_hrs_act":
    > myNewBottomDT.Columns.Add("Man Hrs Act");
    > break;
    >
    > case "cd_cmmt":
    > myNewBottomDT.Columns.Add("Type");
    > break;
    >
    > case "id_cmmt":
    > myNewBottomDT.Columns.Add("Document #");
    > break;
    >
    > case "id_vendor_no":
    > myNewBottomDT.Columns.Add("Vendor");
    > break;
    >
    > case "id_po":
    > myNewBottomDT.Columns.Add("PO #");
    > break;
    >
    > default:
    > myNewBottomDT.Columns.Add(BottomDataView.Table.Col umns[i].ColumnName.ToString());
    > break;
    > }
    >
    > }
    >
    > myNewBottomDT.Columns.Add("Remove");
    >
    > #endregion
    >
    > #region Table Rows
    >
    > foreach (DataRowView myDRV in BottomDataView)
    > {
    > myNewBottomDR = myNewBottomDT.NewRow();
    >
    > for (int i = 0; i < BottomDataView.Table.Columns.Count; i++)
    > {
    > switch (BottomDataView.Table.Columns[i].ColumnName.ToString())
    > {
    > case "fl_memo":
    > if ( myDRV[i].ToString() == "1" )
    > {
    > myNewBottomDR[i] = "Yes";
    > }
    > else
    > {
    > myNewBottomDR[i] = "No";
    > }
    > break;
    >
    > default:
    > myNewBottomDR[i] = myDRV[i];
    > break;
    > }
    >
    > }
    >
    > myNewBottomDT.Rows.Add(myNewBottomDR);
    > }
    >
    > #endregion
    >
    >
    > int temp = myNewBottomDT.Rows.Count;
    > int nextFutureId = Convert.ToInt32(
    > myNewBottomDT.Rows[temp-1]["Futures"].ToString() ) + 1 ;
    >
    >
    > //there is a problem here not sure y
    > myNewBottomDR = myNewBottomDT.NewRow();
    > myNewBottomDT.Rows.Add(myNewBottomDR);
    >
    >
    > DataView myNewBottomDV = new DataView(myNewBottomDT);
    > DGPlanningStatusBottom.DataSource = myNewBottomDV;
    > DGPlanningStatusBottom.DataBind();
    >
    >
    > if i DON'T include the blank row all postback's are working fine all
    > event's are triggered, but when i had the blank row before binding the
    > DT/DV to the datagrid i receive the following error "action cancelled" and NO EVENT's are
    > triggered at all
    toytoto Guest

  3. #3

    Default Re: Need Help Please!

    Is there code missing from your sample? It is hard to analyze when there's
    no reference for myBottomDT:

    // Give dataview the datatable
    BottomDataView.Table = myBottomDT;

    Ken

    "toytoto" <daniel_st.pierre@fpl.com> wrote in message
    news:4ae1aadb.0409091130.4a2ea7f7@posting.google.c om...
    > ok here's the code and bellow i explain the problem
    >
    > // Create new data view
    > DataView BottomDataView = new DataView();
    >
    > // Give dataview the datatable
    > BottomDataView.Table = myBottomDT;
    >
    > DataTable myNewBottomDT = new DataTable("myNewBottomDT1");
    > DataRow myNewBottomDR;
    >
    > #region Table Columns
    >
    > // Define the columns of the table.
    > for (int i = 0; i < BottomDataView.Table.Columns.Count; i++)
    > {
    > switch (BottomDataView.Table.Columns[i].ColumnName.ToString())
    > {
    > case "id_futures":
    > myNewBottomDT.Columns.Add("Futures");
    > break;
    >
    > case "id_planner":
    > myNewBottomDT.Columns.Add("Responsible");
    > break;
    >
    > case "cd_commodity":
    > myNewBottomDT.Columns.Add("Commodity<BR>Service");
    > break;
    >
    > case "tx_desc":
    > myNewBottomDT.Columns.Add("Description");
    > break;
    >
    > case "qy_leadtime":
    > myNewBottomDT.Columns.Add("Lead Time");
    > break;
    >
    > case "dt_planning_def":
    > myNewBottomDT.Columns.Add("Need Date");
    > break;
    >
    > case "fl_memo":
    > myNewBottomDT.Columns.Add("Memo Only");
    > break;
    >
    > case "qy_hrs_est":
    > myNewBottomDT.Columns.Add("Man Hrs Est");
    > break;
    >
    > case "qy_hrs_act":
    > myNewBottomDT.Columns.Add("Man Hrs Act");
    > break;
    >
    > case "cd_cmmt":
    > myNewBottomDT.Columns.Add("Type");
    > break;
    >
    > case "id_cmmt":
    > myNewBottomDT.Columns.Add("Document #");
    > break;
    >
    > case "id_vendor_no":
    > myNewBottomDT.Columns.Add("Vendor");
    > break;
    >
    > case "id_po":
    > myNewBottomDT.Columns.Add("PO #");
    > break;
    >
    > default:
    > myNewBottomDT.Columns.Add(BottomDataView.Table.Col umns[i].ColumnName.ToString());
    > break;
    > }
    >
    > }
    >
    > myNewBottomDT.Columns.Add("Remove");
    >
    > #endregion
    >
    > #region Table Rows
    >
    > foreach (DataRowView myDRV in BottomDataView)
    > {
    > myNewBottomDR = myNewBottomDT.NewRow();
    >
    > for (int i = 0; i < BottomDataView.Table.Columns.Count; i++)
    > {
    > switch (BottomDataView.Table.Columns[i].ColumnName.ToString())
    > {
    > case "fl_memo":
    > if ( myDRV[i].ToString() == "1" )
    > {
    > myNewBottomDR[i] = "Yes";
    > }
    > else
    > {
    > myNewBottomDR[i] = "No";
    > }
    > break;
    >
    > default:
    > myNewBottomDR[i] = myDRV[i];
    > break;
    > }
    >
    > }
    >
    > myNewBottomDT.Rows.Add(myNewBottomDR);
    > }
    >
    > #endregion
    >
    >
    > int temp = myNewBottomDT.Rows.Count;
    > int nextFutureId = Convert.ToInt32(
    > myNewBottomDT.Rows[temp-1]["Futures"].ToString() ) + 1 ;
    >
    >
    > //there is a problem here not sure y
    > myNewBottomDR = myNewBottomDT.NewRow();
    > myNewBottomDT.Rows.Add(myNewBottomDR);
    >
    >
    > DataView myNewBottomDV = new DataView(myNewBottomDT);
    > DGPlanningStatusBottom.DataSource = myNewBottomDV;
    > DGPlanningStatusBottom.DataBind();
    >
    >
    > if i DON'T include the blank row all postback's are working fine all
    > event's are triggered, but when i had the blank row before binding the
    > DT/DV to the datagrid i receive the following error and NO EVENT's are
    > triggered at all
    Ken Cox [Microsoft MVP] Guest

  4. #4

    Default Re: Need Help Please!

    you have at least 3 data tables when u only want two. for instance, why do
    you need this line:
    DataView myNewBottomDV = new DataView(myNewBottomDT);
    > DGPlanningStatusBottom.DataSource = myNewBottomDV;
    you can bind the table without creating a dataview

    > default:
    > myNewBottomDR[i] = myDRV[i];
    > break;
    this is problematic because you are setting a cross reference. you should be
    using
    myNewBottomDR[i] = myDRV[i].ToString() if you intend to copy values. this
    might be what is causing your error.

    it's easier if you just copy the table schema that looping thru and manually
    building a datatable by the way.

    --
    Regards,
    Alvin Bruney
    [ASP.NET MVP [url]http://mvp.support.microsoft.com/default.aspx][/url]
    Got tidbits? Get it here... [url]http://tinyurl.com/27cok[/url]
    "toytoto" <daniel_st.pierre@fpl.com> wrote in message
    news:4ae1aadb.0409112057.53e72787@posting.google.c om...
    > is there any body out there that could help me on this just lost like
    > over a week trying to make this work realy going crazy with this
    >
    >
    > [email]daniel_st.pierre@fpl.com[/email] (toytoto) wrote in message
    > news:<4ae1aadb.0409091130.4a2ea7f7@posting.google. com>...
    >> ok here's the code and bellow i explain the problem
    >>
    >> // Create new data view
    >> DataView BottomDataView = new DataView();
    >>
    >> // Give dataview the datatable
    >> BottomDataView.Table = myBottomDT;
    >>
    >> DataTable myNewBottomDT = new DataTable("myNewBottomDT1");
    >> DataRow myNewBottomDR;
    >>
    >> #region Table Columns
    >>
    >> // Define the columns of the table.
    >> for (int i = 0; i < BottomDataView.Table.Columns.Count; i++)
    >> {
    >> switch (BottomDataView.Table.Columns[i].ColumnName.ToString())
    >> {
    >> case "id_futures":
    >> myNewBottomDT.Columns.Add("Futures");
    >> break;
    >>
    >> case "id_planner":
    >> myNewBottomDT.Columns.Add("Responsible");
    >> break;
    >>
    >> case "cd_commodity":
    >> myNewBottomDT.Columns.Add("Commodity<BR>Service");
    >> break;
    >>
    >> case "tx_desc":
    >> myNewBottomDT.Columns.Add("Description");
    >> break;
    >>
    >> case "qy_leadtime":
    >> myNewBottomDT.Columns.Add("Lead Time");
    >> break;
    >>
    >> case "dt_planning_def":
    >> myNewBottomDT.Columns.Add("Need Date");
    >> break;
    >>
    >> case "fl_memo":
    >> myNewBottomDT.Columns.Add("Memo Only");
    >> break;
    >>
    >> case "qy_hrs_est":
    >> myNewBottomDT.Columns.Add("Man Hrs Est");
    >> break;
    >>
    >> case "qy_hrs_act":
    >> myNewBottomDT.Columns.Add("Man Hrs Act");
    >> break;
    >>
    >> case "cd_cmmt":
    >> myNewBottomDT.Columns.Add("Type");
    >> break;
    >>
    >> case "id_cmmt":
    >> myNewBottomDT.Columns.Add("Document #");
    >> break;
    >>
    >> case "id_vendor_no":
    >> myNewBottomDT.Columns.Add("Vendor");
    >> break;
    >>
    >> case "id_po":
    >> myNewBottomDT.Columns.Add("PO #");
    >> break;
    >>
    >> default:
    >> myNewBottomDT.Columns.Add(BottomDataView.Table.Col umns[i].ColumnName.ToString());
    >> break;
    >> }
    >>
    >> }
    >>
    >> myNewBottomDT.Columns.Add("Remove");
    >>
    >> #endregion
    >>
    >> #region Table Rows
    >>
    >> foreach (DataRowView myDRV in BottomDataView)
    >> {
    >> myNewBottomDR = myNewBottomDT.NewRow();
    >>
    >> for (int i = 0; i < BottomDataView.Table.Columns.Count; i++)
    >> {
    >> switch (BottomDataView.Table.Columns[i].ColumnName.ToString())
    >> {
    >> case "fl_memo":
    >> if ( myDRV[i].ToString() == "1" )
    >> {
    >> myNewBottomDR[i] = "Yes";
    >> }
    >> else
    >> {
    >> myNewBottomDR[i] = "No";
    >> }
    >> break;
    >>
    >> default:
    >> myNewBottomDR[i] = myDRV[i];
    >> break;
    >> }
    >>
    >> }
    >>
    >> myNewBottomDT.Rows.Add(myNewBottomDR);
    >> }
    >>
    >> #endregion
    >>
    >>
    >> int temp = myNewBottomDT.Rows.Count;
    >> int nextFutureId = Convert.ToInt32(
    >> myNewBottomDT.Rows[temp-1]["Futures"].ToString() ) + 1 ;
    >>
    >>
    >> //there is a problem here not sure y
    >> myNewBottomDR = myNewBottomDT.NewRow();
    >> myNewBottomDT.Rows.Add(myNewBottomDR);
    >>
    >>
    >> DataView myNewBottomDV = new DataView(myNewBottomDT);
    >> DGPlanningStatusBottom.DataSource = myNewBottomDV;
    >> DGPlanningStatusBottom.DataBind();
    >>
    >>
    >> if i DON'T include the blank row all postback's are working fine all
    >> event's are triggered, but when i had the blank row before binding the
    >> DT/DV to the datagrid i receive the following error "action cancelled"
    >> and NO EVENT's are
    >> triggered at all

    Alvin Bruney [MVP] Guest

  5. #5

    Default Re: Need Help Please!

    Alvin, Ken, Sorry for the confusion and useless code in the previous
    message, been doing so manythings to try to make this work it's not
    even funny... anyway here's the problem and new clean code.

    if i DON'T include the blank row in the datatable and bind this
    datatable to an editable datagrid with a few checkbox's, dropdown's,
    textbox's on it etc. When i make changes to any values eg: "select
    different values in one of the dropdown's" then the postback occurs
    and all proper events a triggered and working fine.

    now if i include the blank row in the datatable and bind this
    datatable to the same editable datagrid When i make changes to any
    values eg: "select different values in one of the dropdown's" then the
    postback DOESN'T occur anymore and NO events are triggered and the
    page returns "Action Cancelled" page. I've tried a million different
    things without success placed tonnes of bookmarks in the page and none
    of them receive focus when i added this blank row in the datatable.

    please feel free to email directly if additional "info" or "code"
    needed

    here is the entire method as i use it

    private void FillBottomPlanningStatusTab(DataTable myBottomDT)
    {
    DataView BottomDataView = new DataView();

    //myBottomDT IS THE DATATABLE RECEIVED WHEN THIS METHOD IS CALLED
    BottomDataView.Table = myBottomDT;

    DataTable myNewBottomDT = new DataTable("myNewBottomDT1");
    DataRow myNewBottomDR;

    #region Table Columns

    // RENAMES THE NEEDED COLUMNS FROM RECEIVED DATATABLE
    for (int i = 0; i < BottomDataView.Table.Columns.Count; i++)
    {
    switch (BottomDataView.Table.Columns[i].ColumnName.ToString())
    {
    case "id_futures":
    myNewBottomDT.Columns.Add("Futures");
    break;

    case "id_planner":
    myNewBottomDT.Columns.Add("Responsible");
    break;

    case "cd_commodity":
    myNewBottomDT.Columns.Add("Commodity<BR>Service");
    break;

    case "tx_desc":
    myNewBottomDT.Columns.Add("Description");
    break;

    case "qy_leadtime":
    myNewBottomDT.Columns.Add("Lead Time");
    break;

    case "dt_planning_def":
    myNewBottomDT.Columns.Add("Need Date");
    break;

    case "fl_memo":
    myNewBottomDT.Columns.Add("Memo Only");
    break;

    case "qy_hrs_est":
    myNewBottomDT.Columns.Add("Man Hrs Est");
    break;

    case "qy_hrs_act":
    myNewBottomDT.Columns.Add("Man Hrs Act");
    break;

    case "cd_cmmt":
    myNewBottomDT.Columns.Add("Type");
    break;

    case "id_cmmt":
    myNewBottomDT.Columns.Add("Document #");
    break;

    case "id_vendor_no":
    myNewBottomDT.Columns.Add("Vendor");
    break;

    case "id_po":
    myNewBottomDT.Columns.Add("PO #");
    break;

    default:
    myNewBottomDT.Columns.Add(BottomDataView.Table.Col umns[i].ColumnName.ToString());
    break;
    }

    }

    myNewBottomDT.Columns.Add("Remove");

    #endregion

    #region Table Rows

    // ADDS ALL THE ORIGINAL DATA RECEIVED FROM DATATABLE TO NEW
    REFORMATED DATATABLE
    foreach (DataRowView myDRV in BottomDataView)
    {
    myNewBottomDR = myNewBottomDT.NewRow();

    for (int i = 0; i < BottomDataView.Table.Columns.Count; i++)
    {
    switch (BottomDataView.Table.Columns[i].ColumnName.ToString())
    {
    case "fl_memo":
    if ( myDRV[i].ToString() == "1" )
    {
    myNewBottomDR[i] = "Yes";
    }
    else
    {
    myNewBottomDR[i] = "No";
    }
    break;

    default:
    myNewBottomDR[i] = myDRV[i].ToString();
    break;
    }

    }

    myNewBottomDT.Rows.Add(myNewBottomDR);
    }

    #endregion

    // SIMPLY USED FOR TESTING PURPUSES ON MY END
    //dg2.DataSource = myNewBottomDT;
    //dg2.DataBind();

    // ****
    // PROBLEMATIC LINES BELLOW
    // ****

    myNewBottomDR = myNewBottomDT.NewRow();
    myNewBottomDT.Rows.Add(myNewBottomDR);

    // ****
    // PROBLEMATIC LINES ABOVE
    // ****

    // SIMPLY USED FOR TESTING PURPUSES ON MY END
    //dg3.DataSource = myNewBottomDT;
    //dg3.DataBind();

    myNewBottomDT.Columns.Remove("nm_planner");
    myNewBottomDT.Columns.Remove("nm_commodity");
    myNewBottomDT.Columns.Remove("cd_plnt_symb");
    myNewBottomDT.Columns.Remove("id_evnt_num");
    myNewBottomDT.Columns.Remove("nm_vendor");
    myNewBottomDT.Columns.Remove("f_id_cmmt_seq");

    // EDITABLE DATAGRID
    DGPlanningStatusBottom.DataSource = myNewBottomDT;
    DGPlanningStatusBottom.DataBind();

    }

    thank u guys for your help i realy appriciate it
    toytoto Guest

  6. #6

    Default Re: Need Help Please!

    It is still hard to understand what you're trying to accomplish. Could you
    post a serialized version of the original datatable?

    Also, when you put a Try...Catch around the problematic lines, does it show
    anything?


    "toytoto" <daniel_st.pierre@fpl.com> wrote in message
    news:4ae1aadb.0409130854.807fbba@posting.google.co m...
    > Alvin, Ken, Sorry for the confusion and useless code in the previous
    > message, been doing so manythings to try to make this work it's not
    > even funny... anyway here's the problem and new clean code.
    >
    > if i DON'T include the blank row in the datatable and bind this
    > datatable to an editable datagrid with a few checkbox's, dropdown's,
    > textbox's on it etc. When i make changes to any values eg: "select
    > different values in one of the dropdown's" then the postback occurs
    > and all proper events a triggered and working fine.
    >
    > now if i include the blank row in the datatable and bind this
    > datatable to the same editable datagrid When i make changes to any
    > values eg: "select different values in one of the dropdown's" then the
    > postback DOESN'T occur anymore and NO events are triggered and the
    > page returns "Action Cancelled" page. I've tried a million different
    > things without success placed tonnes of bookmarks in the page and none
    > of them receive focus when i added this blank row in the datatable.
    >
    > please feel free to email directly if additional "info" or "code"
    > needed
    >
    > here is the entire method as i use it
    >
    > private void FillBottomPlanningStatusTab(DataTable myBottomDT)
    > {
    > DataView BottomDataView = new DataView();
    >
    > //myBottomDT IS THE DATATABLE RECEIVED WHEN THIS METHOD IS CALLED
    > BottomDataView.Table = myBottomDT;
    >
    > DataTable myNewBottomDT = new DataTable("myNewBottomDT1");
    > DataRow myNewBottomDR;
    >
    > #region Table Columns
    >
    > // RENAMES THE NEEDED COLUMNS FROM RECEIVED DATATABLE
    > for (int i = 0; i < BottomDataView.Table.Columns.Count; i++)
    > {
    > switch (BottomDataView.Table.Columns[i].ColumnName.ToString())
    > {
    > case "id_futures":
    > myNewBottomDT.Columns.Add("Futures");
    > break;
    >
    > case "id_planner":
    > myNewBottomDT.Columns.Add("Responsible");
    > break;
    >
    > case "cd_commodity":
    > myNewBottomDT.Columns.Add("Commodity<BR>Service");
    > break;
    >
    > case "tx_desc":
    > myNewBottomDT.Columns.Add("Description");
    > break;
    >
    > case "qy_leadtime":
    > myNewBottomDT.Columns.Add("Lead Time");
    > break;
    >
    > case "dt_planning_def":
    > myNewBottomDT.Columns.Add("Need Date");
    > break;
    >
    > case "fl_memo":
    > myNewBottomDT.Columns.Add("Memo Only");
    > break;
    >
    > case "qy_hrs_est":
    > myNewBottomDT.Columns.Add("Man Hrs Est");
    > break;
    >
    > case "qy_hrs_act":
    > myNewBottomDT.Columns.Add("Man Hrs Act");
    > break;
    >
    > case "cd_cmmt":
    > myNewBottomDT.Columns.Add("Type");
    > break;
    >
    > case "id_cmmt":
    > myNewBottomDT.Columns.Add("Document #");
    > break;
    >
    > case "id_vendor_no":
    > myNewBottomDT.Columns.Add("Vendor");
    > break;
    >
    > case "id_po":
    > myNewBottomDT.Columns.Add("PO #");
    > break;
    >
    > default:
    > myNewBottomDT.Columns.Add(BottomDataView.Table.Col umns[i].ColumnName.ToString());
    > break;
    > }
    >
    > }
    >
    > myNewBottomDT.Columns.Add("Remove");
    >
    > #endregion
    >
    > #region Table Rows
    >
    > // ADDS ALL THE ORIGINAL DATA RECEIVED FROM DATATABLE TO NEW
    > REFORMATED DATATABLE
    > foreach (DataRowView myDRV in BottomDataView)
    > {
    > myNewBottomDR = myNewBottomDT.NewRow();
    >
    > for (int i = 0; i < BottomDataView.Table.Columns.Count; i++)
    > {
    > switch (BottomDataView.Table.Columns[i].ColumnName.ToString())
    > {
    > case "fl_memo":
    > if ( myDRV[i].ToString() == "1" )
    > {
    > myNewBottomDR[i] = "Yes";
    > }
    > else
    > {
    > myNewBottomDR[i] = "No";
    > }
    > break;
    >
    > default:
    > myNewBottomDR[i] = myDRV[i].ToString();
    > break;
    > }
    >
    > }
    >
    > myNewBottomDT.Rows.Add(myNewBottomDR);
    > }
    >
    > #endregion
    >
    > // SIMPLY USED FOR TESTING PURPUSES ON MY END
    > //dg2.DataSource = myNewBottomDT;
    > //dg2.DataBind();
    >
    > // ****
    > // PROBLEMATIC LINES BELLOW
    > // ****
    >
    > myNewBottomDR = myNewBottomDT.NewRow();
    > myNewBottomDT.Rows.Add(myNewBottomDR);
    >
    > // ****
    > // PROBLEMATIC LINES ABOVE
    > // ****
    >
    > // SIMPLY USED FOR TESTING PURPUSES ON MY END
    > //dg3.DataSource = myNewBottomDT;
    > //dg3.DataBind();
    >
    > myNewBottomDT.Columns.Remove("nm_planner");
    > myNewBottomDT.Columns.Remove("nm_commodity");
    > myNewBottomDT.Columns.Remove("cd_plnt_symb");
    > myNewBottomDT.Columns.Remove("id_evnt_num");
    > myNewBottomDT.Columns.Remove("nm_vendor");
    > myNewBottomDT.Columns.Remove("f_id_cmmt_seq");
    >
    > // EDITABLE DATAGRID
    > DGPlanningStatusBottom.DataSource = myNewBottomDT;
    > DGPlanningStatusBottom.DataBind();
    >
    > }
    >
    > thank u guys for your help i realy appriciate it
    Ken Cox [Microsoft MVP] Guest

  7. #7

    Default Need Help Please!

    Any help would be appreciated!

    I am setting up a form for a real estate office. They would like it set up so that when the address is entered into the address field it will also be entered on to the following pages automatically. So, if the address is entered on page 1, it was also be on page 2, 3 and so on.

    This may be a simple problem but for some reason I cannot find the answer.

    Does anyone know?
    DDox@adobeforums.com Guest

  8. #8

    Default Re: Need Help Please!

    If you give a form field a name and use the exact same name for form fields on other pages in the same PDF they will all fill with the same data.
    Gary_A.@adobeforums.com Guest

  9. #9

    Default Re: Need Help Please!

    Thank you so much
    DDox@adobeforums.com Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139