Some Question.

Dec 24, 2008 at 11:23 PM
How to have auto row numbering value in SuperList column, ex:
   No. Code
   1     0002
   2     0005
Is there any context variable to get RowIndex or any trick to do that?

Why when multiselect is false, CTR+A select ALL rows?
Is this behavior or BUGS?

Thx, great control, I have replace DataGridView with this control already, :P.
Coordinator
Jan 8, 2009 at 1:36 PM
>How to have auto row numbering value in SuperList column, ex:
Not out of the box I'm afraid, you would have to get access to a private method called 'PositionFromRowIdentifier' in the ListSection class. You can access the ListSection from the controls ListSection property. You would have to make the private variable public however, if you do then the method takes as its param a RowIdentifier - before calling it you would need to wrap your object in a NonGroupRow object which derives from RowIdentifier.

Regarding your second question about multiselect, it's a bug which I've just fixed.

Cheers
Lee


Jan 13, 2009 at 10:18 PM
How bout changin the delegate of ColumnItemValueAccessor?
Instead of ColumnItemValueAccessor(object rowItem ) to something like  ColumnItemValueAccessor(RowItem rowItem )
....
public class RowItem
{
   public int RowIndex { get; private set; }
   public int DataSourceRowIndex { get; set; }
   public object Value { get; private set; }
}

Another unexpected behavior:
- Setting MultiSelect=false on DesignTime never have affect on RunTime (always true).
- When Column.IsFixedWidth=true, double clicking column header if header Caption not shown all text (have elipsis ..., don't know how to describe it, :P) trigger ListSection.SizeColumnsToFit.
  IMHO, it was strange, because user can't resize column width after that.
- Column.ColumnItemBackgroundColorAccessor seem doesn't have any usage in SuperList code.
 
And I have sugestion, when CTR+C row in SuperList, it's just copied DataSourve type FullName to Clipboard.
Maybe we should add event like:

public class CopyToClipboardEventArgs : EventArgs
{
        public object Value { get; private set; }
        public string FormatValue { get; set; }
}
...

public event EventHandler<CopyToClipboardEventArgs> CopyToClipboard;
...

Thx, for your replay.