Wrox Programmer Forums
Go Back   Wrox Programmer Forums > C# and C > C# 1.0 > C#
|
C# Programming questions specific to the Microsoft C# language. See also the forum Beginning Visual C# to discuss that specific Wrox book and code.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the C# section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old May 25th, 2016, 07:32 PM
Registered User
 
Join Date: May 2016
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Add a dictionary to a grid

how can i add a dictionary to a grid?
 
Old May 25th, 2016, 07:45 PM
Registered User
 
Join Date: May 2016
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Re:Add a dictionary to a grid

Quote:
Originally Posted by boom View Post
how can i add a dictionary to a grid?



this is simply done by the use of dapfor.Net Grid. check the code below

//Add a dictionary to a grid
IDictionary<string, object> dataObject1 = new Dictionary<string, object>();
dataObject1.Add("IntValue", 10);
dataObject1.Add("StringValue", "some string 1");
grid.Rows.Add(dataObject1);





Similar Threads
Thread Thread Starter Forum Replies Last Post
Add to Hyperlink Grid View cell programatically AlexW ASP.NET 4 General Discussion 0 December 31st, 2011 06:19 AM
Add window content into Grid cell sektor Windows Presentation Foundation 0 January 14th, 2009 10:17 AM
how data grid of vb.net add cell color Nuwang Forum and Wrox.com Feedback 0 September 10th, 2008 08:36 PM
Add Rows to Grid View dpkbahuguna ASP.NET 1.x and 2.0 Application Design 0 March 19th, 2008 04:05 AM
how to add rows to the child grid Amorous ASP.NET 1.0 and 1.1 Basics 1 January 12th, 2006 06:44 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.