Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
731
What is The Difference???
posted

1) can any one guide me what is the difference between webdatagrid and ultragrid  and when to use which one????

2)why we use key value in grid????

3) i want to create dynamic boundfield in ultraweb grid and can any one provide me that code in which i can set its headertext,datafield and key value

 

Parents
No Data
Reply
  • 7694
    posted

    Hello,

    For difference between WebDataGrid and UltraWebGrid you can take a look  at the link: http://forums.infragistics.com/forums/t/16141.aspx

     

    For binding of UltraWebGrid you can look code below:
    Dynamic bind:
            DataSet1 ds = new DataSet1();

            DataSet1TableAdapters.ProductsTableAdapter prod = new DataSet1TableAdapters.ProductsTableAdapter();

            prod.Fill(ds.Products);

            UltraWebGrid1.DataSource = ds;
            DataBind();

    You can set Key and HeaderText with this code:

    C#:
    UltraWebGrid1.Columns[0].Header.Caption = "test";
    UltraWebGrid1.Columns[0].Header.Key = "test";

    or with ASPX:
    <igtbl:UltraGridColumn BaseColumnName="CustomerID" IsBound="True" Key="test">
                                <Header Caption="test">
                                    <RowLayoutColumnInfo OriginX="1" />
                                </Header>
                                <Footer>
                                    <RowLayoutColumnInfo OriginX="1" />
                                </Footer>
                            </igtbl:UltraGridColumn>

     

    Hope this helps.

Children