CodePaste Logo
New Snippet New Snippet Recent Snippets Recent Snippets My Snippets My Snippets Web Code Search Snippets Search
Sign inor Register
Format:
Recent snippets matching tags of grid
XML
<DataGrid.Resources>
    <SolidColorBrush x:Key="{x:Static SystemColors.HighlightBrushKey}" Color="#FFFFFF"/>
    <SolidColorBrush x:Key="{x:Static SystemColors.HighlightTextBrushKey}" Color="#000000"/>
</DataGrid.Resources>
by patrick   March 05, 2012 @ 6:13am
29 Views
no comments
 
    $.fn.flexSearch = function(p) { // function to search grid
            return this.each( function() { if (this.grid&&this.p.searchitems) this.grid.doSearch(); });
    }; //end flexSearch
by chris.blazek@gmail.com   August 09, 2011 @ 9:59am
111 Views
no comments
 
C#
namespace WindowsFormsApplication1
{
    public partial class Form1 : System.Windows.Forms.Form
    {
        public Form1()
        {
            InitializeComponent();
 
            // create list of data
            var _List = new System.Collections.Generic.List<Data> 
by Jerry Nixon   January 24, 2011 @ 2:17pm
1724 Views
1 comments
 
jQuery("#list").tableDnD({
 
    onDrop: function(table, row) {
 
        var oldIndex = row.id;
 
        var newIndex = row.rowIndex;
 
        if (oldIndex == newIndex)
by ZStyle   August 24, 2010 @ 11:16pm
462 Views
no comments
 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Untitled Document</title>
<link rel="stylesheet" type="text/css" media="screen" href="/css/redmond/jquery-ui-1.7.2.custom.css" />
<link rel="stylesheet" type="text/css" media="screen" href="/css/ui.jqgrid.css" />
<script src="/js/jquery-1.3.2.min.js" type="text/javascript"></script> 
<script src="/js/grid.locale-en.js" type="text/javascript"></script>
<script src="/js/jquery.jqGrid.min.js" type="text/javascript"></script>
by ZStyle   August 24, 2010 @ 11:13pm
1223 Views
no comments
 
$(document).ready(function() {
 
    // Initialise the first table (as before)
    $("#table-1").tableDnD();
 
    // Make a nice striped effect on the table
    $("#table-2 tr:even').addClass('alt')");
 
    // Initialise the second table specifying a dragClass and an onDrop function that will display an alert
    $("#table-2").tableDnD({
by ZStyle   August 24, 2010 @ 11:09pm
687 Views
no comments
 
C#
private void dataGridViewOrders_SelectionChanged(object sender, EventArgs e)
{
    dataGridViewOrderDetails.DataSource = null;
    if (dataGridViewOrders.SelectedRows.Count == 0) return;
 
    DataGridViewRow row = dataGridViewOrders.SelectedRows[0];
    if (row == null) return;
 
    int orderId = int.Parse(row.Cells["OrderId"].Value.ToString());
by dereklawless   February 12, 2010 @ 9:43pm
163 Views
no comments
 
Lparameters toColumn
 
Local laControlSource[1], lcAlias, lcControlSource, lcControlSourceTest, lcField, lcPicture
Local lcSortDirection, lnSelect, loHeader
 
Dimension laControlSource[1]
 
 If Type('toColumn.sorting_header') <> 'O'
    Return
 Endif
by Matt Slay   January 28, 2010 @ 1:07pm
739 Views
no comments
 
C#
public partial class _Default : System.Web.UI.Page
{
    private bool mInserted = false;
 
    protected void Page_Load(object sender, EventArgs e) {
        mInserted = false;
    }
    protected void ASPxGridView1_CustomJSProperties(object sender, ASPxGridViewClientJSPropertiesEventArgs e) {
        e.Properties["cpIsInserted"] = mInserted.ToString();
    }
by Mehul Harry   January 08, 2010 @ 4:08pm
682 Views
no comments
 
    <dxwgv:ASPxGridView ID="ASPxGridView1" runat="server" AutoGenerateColumns="False"
        DataSourceID="AccessDataSource1" KeyFieldName="CategoryID" 
        OnCustomJSProperties="ASPxGridView1_CustomJSProperties" 
        onrowinserted="ASPxGridView1_RowInserted">
        <ClientSideEvents EndCallback="function(s, e) {
    if (s.cpIsInserted == 'True') alert('Inserted!');
}" />
by Mehul Harry   January 08, 2010 @ 4:07pm
1163 Views
no comments
 
C#
    protected void ASPxButton1_Click(object sender, EventArgs e)
    {
        object key = ASPxGridView1.GetRowValues(2, "CategoryID");
        ASPxGridView1.Selection.SelectRowByKey(key);
 
    }
by Mehul Harry   January 06, 2010 @ 11:49am
479 Views
no comments
 
XML
<ListView.View>
    <GridView>
        <GridView.ColumnHeaderContainerStyle>
            <Style>
                <!-- This hides the header -->
                <Setter Property="FrameworkElement.Visibility" Value="Collapsed" />
            </Style>
        </GridView.ColumnHeaderContainerStyle>
        <GridViewColumn DisplayMemberBinding="{Binding Path=Key}" />
        <GridViewColumn DisplayMemberBinding="{Binding Path=Value}" />
by Theo Lenndorff   January 06, 2010 @ 9:26am
316 Views
1 comments
 
C#
protected virtual void OnNodeClick(FlyGridViewPort port, NodeBase node, int col)
{
    this.7 = node;
    this.FocusNode(port, this.7, col, true);
    Column column = port.Columns.VisibleColumns[col];
    if (this.7 != null)
    {
        this.7(this, node, column);
    }
    if ((!column.OnCellClick(this, node, this.7) && !this.OnIsReadOnly(node)) && !column.ReadOnly)
by Athens Springer   October 29, 2009 @ 7:39am
Tags: C#, FlyGrid
64 Views
no comments
 
brought to you by:
West Wind Techologies



If you find this site useful and use it frequently please consider making a donation to support this free service.
Donate