Free Support Forum -

Default selection of first cell in GridWeb

Hi Aspose team,

We have some problem with default selection of first cell in Grid Web When it renders very first time & always highlight first cell as selected with some dark color.
Need to find a workaround to deselect it.
Is there any way to deselect first cell when grid web loaded first time.
Please help.


Yes, by default A1 cell will be selected. But, you may change the active cell accordingly, see the sample code on how to make your desired cell as active cell in the sheet:

Sample code:

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace GridWebTest
public partial class Common : System.Web.UI.Page
protected void Page_Load(object sender, EventArgs e)
if (!Page.IsPostBack)
Aspose.Cells.GridWeb.Data.WebCell cell = GridWeb1.WebWorksheets[GridWeb1.ActiveSheetIndex].Cells[“C5”];
//Make the C5 cell as an active cell
GridWeb1.ActiveCell = cell;

thanks buddy its really helpful.



Good to know that it works for your needs.

Feel free to contact us any time if you have further query or issue, we will be happy to assist you.

Thank you.