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
Could you please provide an example of how to read cell values of the selected row(s) with checkbox column(s) Server Side inside WebGrid.... It must be possible!
Thank you in advance for you suggestions.
Hi Mark,
Yes it is possible. In way to do so, you need to retrieve the value on each cell by the key value. Here are the sample code that I made in server side.
protected void Button1_Click(object sender, EventArgs e) { TextBox1.Text = "Checked rows are : \n"; foreach (string keyValue in WebGrid1.RootTable.GetCheckedRows()) // get checked rows { for (int x = 1; x < 11;x++ ) { TextBox1.Text += WebGrid1.RootTable.Rows.GetRowByKeyValue (keyValue).Cells[x].Value + ","; } TextBox1.Text += "\n\n"; } }
I hope it helps and please do not hesitate to ask if you have any more questions.
Thank you,Andi Santoso
It worked! Thank you very much.
How do you assign the Keyvalue?
foreach (type identifier in expression) statement
The keyValue acts as the identifier of the foreach statement. It is the iteration variable that represents the collection element.
Could you please provide me with more information about the requirement to assign the keyValue so that I can assist you further?
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