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 gridview
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
1387 Views
1 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
141 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
623 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
1046 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
414 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
289 Views
1 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