Skip to main content

dapfor datasource

Comments

1 comment

  • Dapfor Team

    Hi,

    1. IListSource doesn't have events enabling to notify the grid. Therefore you have to rebind the datasource.
    2. Yes, you can display what you want in the row selector. Here is a code example:

    grid.RowSelector.Width = 50; 
    grid.PaintRow += delegate(object sender, PaintRowEventArgs e)
    {
    e.PaintAll();
    e.Handled = true;
    using (StringFormat sf = new StringFormat())
    {
    sf.Alignment = StringAlignment.Center;
    e.Graphics.DrawString((e.Row.VisibleIndex + 1).ToString(),
    e.Font,
    SystemBrushes.GrayText,
    e.RowSelectorBounds,
    sf);
    }
    };

     

    Best regards,
    Dapfor

    0

Please sign in to leave a comment.

Powered by Zendesk