views:

64

answers:

0

Hi, I'm writing my own datagridview. 1. In the VS designer Mode we can pick source of data in "Choose Data Source" (BindingSource). But I have to fill it up in Page_Load whit data. This, however, does not cause loading them to MyCustomGrid control, and so I have to load them into MyGrid.DataSource. In normal dgv this is no longer needed. What could I be missing?

2. In the VS designer Mode we can manipulate with GridColumns (names, types, etc.). In myCustomGrid I copy all the columns and rows from the DataSource to show them later, for example in groups. Any changes force to draw whole MyGridView from the beginning. Is there any way to retrieve these properties entered in VS DesignerMode to my control without the need to write your own containers storing those data?

Thanks for your help... PO