Method/Property |
Explanation |
Example |
ComboItemsList (ComboCol, ComboList) |
Set the List of items [ComboList] to the Combo box at the Column #ComboCol. |
int c = 4; string strList= "Apple/Banana/Orange/Melon/Peach/Strawberry"; MKGrid1.ComboItemsList(ref c, ref strList); |
DeleteRecord |
Deletes the current Record from database file. |
MKGrid1.DeleteRecord; |
InsertRow |
Insert new Row to unbound Grid. |
MKGrid1.InsertRow; |
set_ColumnHidden (number,ColType) |
Returns or sets a value indicating whether a specified column is hide. |
MKGrid1.set_ColumnHidden(4, false); |
set_ColumnType (number, ColType) |
Returns or sets the type of control to show in a column. |
MKGrid1.set_ColumnType (4, KGrid.grdColumnType.colCheckBox) |
LoadGridByQuery (MyDataFile, GridSQL) |
Populate the grid with query [GridSQL] from the file [MyDataFile]. |
string MyDataFile = Application.StartupPath + @"\DataFiles\" + "test.mdb"; string MySql = "SELECT * FROM Customers" MKGrid1.LoadGridByQuery(ref MyDataFile, ref MyTable); |
LoadGridFromTable (mdbDataFile, mdbTable) |
Bind the Grid to the Table [mdbTable] from the database file [mdbDataFile]. |
string MyDataFile = Application.StartupPath + @"\DataFiles\" + "test.mdb"; string MyTable = "Customers"; MKGrid1.LoadGridFromTable(ref MyDataFile, ref MyTable); |