none
how to create reservation booking grid in vb.net or c#

    Question

  • how can i create hotel reservation system grid.

    i tired datagridview but. it's not working as good. trouble in marge cell and extend the cell value. 

    is there any other way to create a grid of rooms and day.

    please tell me any suggestion or help. 

    thank you in advance.


    NILESH MAKAVANA

    Wednesday, October 03, 2012 10:29 AM

All replies

  • Hi Nilesh,

    DataGridView does not support merged cell by default. You need to handle CellPainting event or override OnCellPainting in your custom datagridview control to paint the border:

    How do I show multi-layered column headers?

    How to display grouped data in a DataGridView?

    I'm not sure what do you mean to extend the cell value.

    If there are any questions, please feel free to let us know.

    Best regards,


    Chester Hong
    MSDN Community Support | Feedback to us
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

    Thursday, October 04, 2012 3:59 AM
  • Thank You for your valuable response

    Yes I know that data grid view not support to merge cell.

    I try and success and merge cell by remove the right border based on condition but there is problem that I can place a label inside cell but I not complete the task by it.

    My task is that I have to place label in grid or alter native of it and user can drag and drop the label and also possible to change width of label by drag.   

    So I need your suggestion how to I achieve that.

    I able to drag and drop a label and also to change the width of label. The problem is that how can I put multiple label in grid.

    please tell me


    NILESH MAKAVANA

    Thursday, October 04, 2012 7:11 AM