---
title: "Data binding in XtraGrid control"  
description: "Data binding in XtraGrid control"  
author: "Anonymous User"  
published: 2012-04-19  
updated: 2012-04-19  
canonical: https://www.mindstick.com/forum/408/data-binding-in-xtragrid-control  
category: "c#"  
tags: ["c#"]  
reading_time: 1 minute  

---

# Data binding in XtraGrid control

I want to bind a [datasource](https://www.mindstick.com/blog/447/listing-the-databases-connected-to-the-datasource) in [XtraGrid control](https://www.mindstick.com/forum/409/checkbox-is-working-as-radio-button-in-xtragrid-control) but I am not able to do it. Problem is that I had created columns in XtraGrid at design time and I am binding records a run time using a user difined [collection](https://www.mindstick.com/articles/1718/collections-in-java).\
\
I had created 4 columns in XtraGrid at design time. First one is [CheckBox](https://www.mindstick.com/articles/291/how-should-use-checkbox-control-in-vb-dot-net) type, [second and third](https://answers.mindstick.com/qa/34285/who-holds-the-second-and-third-place-for-most-yards-rushing-in-a-single-season-in-the-nfl) one is Default and last one is Button type.\
\
**I had create a [structure](https://www.mindstick.com/articles/23258/choose-your-business-structure-wisely) in my program which is as follows**\
\

```
public struct Test{      public bool IsSelect{get; set; }      public string First{get; set; }       public string Second {get; set;}}
```

\
Then I had created a List collection which contains 10 Test type record. for binding I had written following code\
\
grid1.DataSource = userList;\
\
Now I want to bind this record in XtraGrid control. IsSelect [property](https://www.mindstick.com/blog/205/property-notification-in-c-sharp) should be bind with CheckBox column and rest two property will bind with second and third column.\
\
Please help me to [solve this issue](https://answers.mindstick.com/qa/95726/i-am-getting-we-re-working-on-setting-you-up-on-my-google-adsense-for-a-very-long-time-how-should-i-solve-this-issue). Is it possible in XtraGrid.\
\
I am using [visual studio](https://www.mindstick.com/articles/12378/visual-studio-for-mac-is-out-of-beta-preview-now-officially-available) 2010 with .NET Gramework 3.5 and [C# language](https://www.mindstick.com/forum/157570/how-to-use-face-recognition-in-c-sharp-language-for-attendance-register-software).\
\
Thanks.\


---

Original Source: https://www.mindstick.com/forum/408/data-binding-in-xtragrid-control

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
