Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
1115
How I can set cell attributes on server side?
posted

I have event InializeRow, HOw I can set cell attributes?

protected void PackageType_Grid_InitializeRow(object sender, Infragistics.Web.UI.GridControls.RowEventArgs e)
{

if (e.Row.Index == ((DataTable)PackageType_Grid.DataSource).Rows.Count - 1)
{
//I try this e.Row.Items.FindItemByKey("PackageName").Row.Attributes.Add("colspan", "7");
//I try this e.Row.Items.FindItemByKey("PackageName").Record.Attributes.Add("colspan", "7");

e.Row.Items.FindItemByKey("PackageName").Text = GetResourceText("MyPak_Miscellaneous_PackageName_Label");
}
}