locked
bounded/unbounded columns ordering RRS feed

  • Question

  • i want unbounded columns must comes after bounded columns in datagridview.

    please advise.

    Wednesday, January 12, 2011 7:02 PM

Answers

  • Hello,

    It's important to understand that when a datagridview is bound, the records don't physically exist in the dgv control, they exist in the dataset.

    At runtime, if you dynamically add columns and add rows to the unbound columns, there is no relationship to the bound columns. You will need to create a relationship in the dataset(s)

    Adam


    Ctrl+Z
    • Marked as answer by Haris Hussain Tuesday, January 18, 2011 4:11 PM
    Friday, January 14, 2011 2:13 PM

All replies

  • Hi Haris,

    Welcome to the MSDN Forum.

    "unbounded columns must comes after bounded columns in datagridview." I want to know more about what effect do you want. Cloud you please give a more clear description on it, and we will be able to provide quicker and better responses.

    Thank you for your understanding and support.

    I look forward to hearing from you.

     

    Best Regards,

    Mio


    Mio Miao[MSFT]
    MSDN Community Support | Feedback to us
    Get or Request Code Sample from Microsoft
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

    Friday, January 14, 2011 10:36 AM
  • Hello,

    It's important to understand that when a datagridview is bound, the records don't physically exist in the dgv control, they exist in the dataset.

    At runtime, if you dynamically add columns and add rows to the unbound columns, there is no relationship to the bound columns. You will need to create a relationship in the dataset(s)

    Adam


    Ctrl+Z
    • Marked as answer by Haris Hussain Tuesday, January 18, 2011 4:11 PM
    Friday, January 14, 2011 2:13 PM