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
Please guide Related to WebGrid
posted

this is my first post in this forum and my requirement is as follow...

in Webgrid i want to achieve functionality to enter some values may b 4 to 5 column then at the end of pressing enter in 5th column it should create new row with same functionality....

 how can i achieve this please guide.... or something like tutorial would be helpfull for me..

  • 3732
    posted

    Hi,

    To achieve the above functionality, some properties of the UltraWebGrid's DisplayLayout needs to be set. The following lines of code explains how to set the properties in code:

    this.UltraWebGrid1.DisplayLayout.AllowAddNewDefault = Infragistics.WebUI.UltraWebGrid.AllowAddNew.Yes;

    this.UltraWebGrid1.DisplayLayout.AddNewBox.Hidden = false;

    this.UltraWebGrid1.DisplayLayout.AddNewRowDefault.Visible = Infragistics.WebUI.UltraWebGrid.AddNewRowVisible.Yes;

    this.UltraWebGrid1.DisplayLayout.CellClickActionDefault = Infragistics.WebUI.UltraWebGrid.CellClickAction.Edit;

    To set these in design view, open the properties window for the Grid, then expand the DisplayLayout section and set these properties.

    Thanks