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
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.
ok thank you very much for you response...
can you please guide me little bit more now i want to enter data in ultra web grid and then i want to retrieve those cells values to insert in database.... which event of it i will be using and any code sample will be helpful for me :D