Click here to Skip to main content
15,313,682 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
See more:

i need to display the data in gridview.i had taken one page viewexisting bookings in that i taken one gridview and i need to display when any one books the conferenceroom that data should display in gridview.

And other requirement is if the person who booked the room what to do any changes he can do in the i taken edit button and cancel button also.but that button should be enable to the persons who booked the room for other employees it should be disable.
And duplicate booking should not be allowed.

please suggest me.

public partial class HRMSViewExisting : System.Web.UI.Page
    protected void Page_Load(object sender, EventArgs e)
        if (!IsPostBack)

    private void FillGridView()
        DataSet ds;
        ConferenceBL confBL = new ConferenceBL();
        ds = confBL.GetConferenceRoom();

        gvconference.DataSource = ds;


1 solution


u can maintain a log i.e. an autogenerated no as a new column in the same table..!
if that employee/cust id matches with this number then u can allow the button to enabled..!
otherwise it will be desable....!

I am trying to say that just maintain a bool(flag) in your db per record....!

Set button enable disable according to that flag....!

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900