Hi guys.
I'm new to webgrid component and I'm playing around with it.
1. Failed to drag and drop on header
I want to drag and drop the column to change their display location.
I went throught the example codes, but I still can't get any clue out of it.
2.Failed to display relation on the grid
I got 3 tables in a dataset. First is EmployeeDetails, second is EmployeeClockIn and third is Race.
Below is how I set the relation between two different tables, but still failed to show the relation on the webgrid.
The result that I got is just the EmployeeDetails.
ds.Relations.Add(ds.Tables(0).Columns("eid"), ds.Tables(1).Columns("eid"))
3. Failed to edit the row
Below is the code that I set so that I can edit the row but failed as well. I also try to set the property on Design page to allow edti, but failed.
UltraWebGrid1.DisplayLayout.AllowUpdateDefault = AllowUpdate.Yes
UltraWebGrid1.DisplayLayout.CellClickActionDefault = CellClickAction.Edit
4. Failed to bind a valuelist into the cell.
Below is the code that I put in InitializeLayout but there is no dropdownlist showed when I click on the cell.
UltraWebGrid1.Bands(0).Columns.FromKey("race").Type = ColumnType.DropDownList
Dim race As ValueList = UltraWebGrid1.Bands(0).Columns.FromKey("race").ValueList
race.DataSource = ds
race.DisplayMember = "description"
race.DataMember = "Race"
race.ValueMember = "id"
race.DataBind()
Please kindly assits me to solve all problems, this is my first time playing with WebGrid.
Thank you very much.
please, i really need help.....