We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.

Changing the Cell Value at Runtime

Thread ID:

Created:

Updated:

Platform:

Replies:

77401 Oct 30,2008 06:49 AM Oct 31,2008 10:11 PM ASP.NET Web Forms (Classic) 3
loading
Tags: GridGroupingControl
Muneeb Younsi
Asked On October 30, 2008 06:49 AM

Hi,

I am working in Deutsche Bank and using SyncFusion. I want to change the cell value at run time. Could you tell me how to do it?

thanx

regards

Muneeb Youns

e.g.

Currently I am doing this. When I debug, it does change the text but I am not able to see it in the grid.
if (e.Inner.Style.Text == "XYZ")
{
gridGroupingControl.TableControl.Model[e.Inner.RowIndex,e.Inner.ColIndex].Text = "ABC";
}


Perry Way
Replied On October 30, 2008 04:36 PM

Hi,

I am using "RowDataBound" event to change the cell value. I am not sure whether it will solve your requirement. Please see the code below:

protected void sgInventory_RowDataBound(object sender, Syncfusion.Web.UI.WebControls.Grid.Grouping.RowDataBoundEventArgs e)
{
switch (e.Element.Kind)
{
case DisplayElementKind.Record:
{
if (ddlViewBy.SelectedValue == "Root")
{
e.Row.Cells[4].Text = "Root Text";
}
break;
}
}

}


Muneeb Younsi
Replied On October 31, 2008 08:24 AM

Hi,

Thanks for your help. But, unfortunately it will not work in my case.

regards

Muneeb Younsi

>Hi,

I am using "RowDataBound" event to change the cell value. I am not sure whether it will solve your requirement. Please see the code below:

protected void sgInventory_RowDataBound(object sender, Syncfusion.Web.UI.WebControls.Grid.Grouping.RowDataBoundEventArgs e)
{
switch (e.Element.Kind)
{
case DisplayElementKind.Record:
{
if (ddlViewBy.SelectedValue == "Root")
{
e.Row.Cells[4].Text = "Root Text";
}
break;
}
}

}




Mohamed Suhaib Fahad A. [Syncfusion]
Replied On October 31, 2008 10:11 PM

Hi Muneeb,

I had already updated the other forum thread,

http://www.syncfusion.com/support/forums/message.aspx?MessageID=76732

Please check this out and let us know if it helps you.

Thanks,
Fahad
ASP.NET Grid Team
Syncfusion Inc.,


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;