Hi,
Thanks for your reply.
One more query we are having regarding the same. As you mentioned,we assigned a image with vertical dotted lines in the middle to that cell. Now our problem is if the column header is dragged, then the image is not stretched. So the vertical alignment is not proper. Give us some solution for this.
Regards,
Prathima.
>Hi Prathima,
>
>The ColumnSets are used for diplaying the rows in a multi row fashion, therefore it is quite not possible to have only the header cells multirows and the record field as single row. However using QueryCellStyleInfo, the border style for the bottom of that cell can be removed and a similar dotted image as of standard GridBorderStyle can be placed in that cell. Also disable that cell so that the user do not move over there. To the rest of the columns set VerticalAlignment to Bottom, so that the text are placed uniformly.
>
>
> private void gridGroupingControl1_QueryCellStyleInfo(object sender, GridTableCellStyleInfoEventArgs e)
> {
> if(e.TableCellIdentity.Column != null)
> if(e.TableCellIdentity.Column.Name == "Cash" &&( e.TableCellIdentity.TableCellType == GridTableCellType.RecordFieldCell || e.TableCellIdentity.TableCellType == GridTableCellType.AlternateRecordFieldCell))
> {
> e.Style.Borders.Bottom = new GridBorder(GridBorderStyle.None);
> e.Style.CellType = "Image";
> e.Style.CellValue = bmp;
> e.Style.Enabled = false;
> }
> else if(e.TableCellIdentity.Column.Name != "Cash")
> {
> e.Style.VerticalAlignment = GridVerticalAlignment.Bottom;
> }
> }
>
>
>Best regards,
>Stanley
Pics0.zip