Hi, For prob1, I didn't quite understand your question. I'm not sure how you can make all the rows of the query output be the headings of the datagrid. While displaying the query results, it will be displayed in the query analyser with the headings. That you can bind to the dataset and thereafter to datagrid,so the headings will display. Please correct me if I'm wrong. For prob 2, please try with the following code: A) In the HTML window, add the following code inside the datagrid declaration: AutoGenerateColumns="False" AllowPaging="True" BackColor="#C0C0FF" HorizontalAlign="Center" Height="376px"> ]]>'> ]]>' MaxLength="30"> //Days is the column header in the sql query. On the code behind, add the following code: private void dgrdEditDel_EditCommand(object source, System.Web.UI.WebControls.DataGridCommandEventArgs e) { dgrdEditDel.EditItemIndex = e.Item.ItemIndex; FillGrid();// Function for filling the Grid } private void dgrdEditDel_CancelCommand(object source, System.Web.UI.WebControls.DataGridCommandEventArgs e) { dgrdEditDel.EditItemIndex = -1; FillGrid(); } Try the above code and let me know if you have any issues. Thanks, meeram395 :)
Meeram395