void InitializeFromBindingList(GridControl gridControl) { UserDataSource userDataSource = new UserDataSource(Form1.maxRowCount); for (int i = 0; i < userDataSource.Capacity; i++) { userDataSource.Add(new TestStruct()); } gridControl.DataSource = userDataSource; }