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
350
WebDataGrid remove first row cause alignment problem
posted

I use WebDataGrid, version is Infragistics4.Web.v13.1.20131.2107,

In my sample, I set the row delete style is display:none

.igg_IGDeletedRow
{
color: #9F9F9F;
font-style: italic;
text-decoration: line-through;
display:none;
}

if select first row, and delete the row, then will cause grid line not align, please see below picture:


if delete other row(except first row), there have no problem,

I found this problem will happen when use fixedcolumn feature and set the cell css border property.

the main code is:

// FixedColumn
grid.Behaviors.CreateBehavior<ColumnFixing>();
grid.Behaviors.ColumnFixing.ShowLeftSeparator = false;
grid.Behaviors.ColumnFixing.FixedColumns.Add(new FixedColumnInfo("ProductID", FixLocation.Left));

// Style
grid.ItemCssClass = "GridItem";

<style type="text/css">
.GridItem tr td {
border-bottom: 1px solid #a7a7a7;
border-right: 1px solid #a7a7a7;
}
</style>

have been attach the sample source code.

how to solve this problem? please help, thanks.

WDG_Delete_Row.rar