'Declaration
Public Class GridChangedEventArgs Inherits System.EventArgs
public class GridChangedEventArgs : System.EventArgs
'Declaration
Public Class GridChangedEventArgs Inherits System.EventArgs
public class GridChangedEventArgs : System.EventArgs
private void Form1_Load(object sender, EventArgs e) { _flex = new C1FlexGrid(); _flex.Bounds = new System.Drawing.Rectangle(50, 50, 700, 600); this.Controls.Add(_flex); OleDbConnection con = new OleDbConnection("provider=microsoft.jet.oledb.4.0;Data Source=" + Environment.GetFolderPath(Environment.SpecialFolder.Personal) + "\\ComponentOne Samples\\Common\\C1NWind.mdb"); DataTable productsTable = new DataTable(); new OleDbDataAdapter("Select * from Products order by CategoryID", con).Fill(productsTable); _flex.DataSource = productsTable; _flex.GridChanged += _flex_GridChanged; } private void _flex_GridChanged(object sender, GridChangedEventArgs e) { //Track the type of change that occured in the grid when the GridChanged event was fired. gridChangesListBox.Items.Add(e.GridChangedType); }
System.Object
System.EventArgs
C1.Win.C1FlexGrid.GridChangedEventArgs