Mark new row with * in GridDataBoundGrid

G'day,

I'm using a grid class that is derived from GridDataBoundGrid and I hook it up to a generic binding list (BindingList) of objects. This all works great and I get the "new record" row and all - but I would like to show a * in the row header of that new record row. It seems to happen automagically in one of the samples (it uses a DataTable though, not a BindingList).

Any ideas?

Cheers,
TERRY


1 Reply

AD Administrator Syncfusion Team November 6, 2007 08:53 AM UTC

You would normally get this behavior by default. Attached is a sample showing the * when you click into the AddNewRow.

The icons in the row header are normally provided by the "RowHeaderCell" CellType. You should check to see if you are somehow changing the style.CellType for your row header cells. One way you might be doing this is handling model.QueryCellInfo and providing an e.Style.CellType when e.ColIndex = 0 there.


GDBG_BindingList.zip

Loader.
Up arrow icon