We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

Grid Data Control customization

Hello.

1)
I have a Data Grid with a binding to an observable collection.
The items of my collection have a color property.

How can I bind this proprty to the color of the grid row ?

2)
More generally, how to customize a complete row (not only a cell)?

3)
How can I customize the grid lines of the grid?


Thanks.


1 Reply

RB Ragamathulla B Syncfusion Team November 10, 2011 06:41 AM UTC

Hi Fabien,

Thank you for your Interest in Syncfusion products.

1) You can bind the collection in the GDBG. The following code explains the same.

ArrayList array = new ArrayList();
array.Add(new MyClass(001, "John David"));
array.Add(new MyClass(002, "Tom"));
array.Add(new MyClass(003, "Bretney"));
array.Add(new MyClass(004, "Jessy"));
array.Add(new MyClass(005, "Bruch"));
array.Add(new MyClass(006, "Johny"));

2 & 3 Hope this is helpful for your reference, Please refer to the following UG link

http://help.syncfusion.com/ug_94/User%20Interface/Windows%20Forms/Grid/Documents/522howtochangethebackcolorofacolumn.htm

Please refer to the sample link which is illustrates the same.

http://www.syncfusion.com/downloads/Support/DirectTrac/87069/GDBGSample-2118917405.zip

Please let me know If you have any further concerns.

Regards,
Ragamathullah B.



Loader.
Live Chat Icon For mobile
Up arrow icon