iSeller Commerce
iSeller POS Retail
iSeller POS F&B
iSeller POS Express
Crosslight
WebUI
ClientUI
What's New
Download Trial
Web Solution
Mobile Solution
Enterprise Solution
Custom Development
Blog
Community
Latest Development Blogs
ForumPostTopic
Browse By Tag
WebGrid1.RootTable.Columns.Add("Services");
Is there a way to Add Data manually to that Colum i have created?
Somthing like:
WebGrid1.RootTable.Columns.AddDataToColumn("Services", dr.Services);
dr.Services gets the Data over the Mapping.
Thanks
Hi Kashif,
You can use this scenario on WebGrid. FYI, in my sample, I don't use any DataSource that bind to WebGrid. WebGrid take data from datatable in code behind. Please look AddRow Event in my sample for tutorial how to add row in Unbound WebGrid. You can also add data when WebGrid Initialize from either database or manually assign on InitializeDataSource event. You can ask me if there's scenario that you want to achieve using this Unbound WebGrid. Hope this helps.
Regards,Bernard
From the requirement that you mentioned above, I think you want to do add new row on Unbound WebGrid. For doing this matter, I give you my sample that explain that will describe you how to adding new row on Unbound WebGrid. Could you check on my sample and tell me if this sample meet your requirement or no?
TableRow row = new TableRow(); TableCell cell = new TableCell(); if (dr.Service.Amount == Amount.Basket) { foreach (BasketService basketDl in dr.Service.Basket) { cell.Controls.Add(new LiteralControl("<tr />")); TableRenderer.AddTableCell(row, s.From.ToString(form.DatumsFormat), 1); TableRenderer.AddTableCell(row, s.From.ToString(form.ZeitFormat), 1); TableRenderer.AddTableCell(row, s.Until.ToString(form.DatumsFormat), 1); TableRenderer.AddTableCell(row, s.Until.ToString(form.ZeitFormat), 1); cell = new TableCell(); var txt = new TextBox(); txt.Text = string.Format("{0:0.00}", s.Price); txt.Width = 42; txt.MaxLength = 5; txt.CssClass = "nummer"; cell.Controls.Add(txt); row.Cells.Add(cell); } }
} }
or
Choose this if you're already a member of Intersoft Community Forum. You can link your OpenID account to your existing Intersoft Social ID.
Choose this if you don't have an Intersoft account yet. Your authenticated OpenID will be automatically linked to your new Intersoft account.
Enter your Wordpress Blogname