Thread ID: |
Created: |
Updated: |
Platform: |
Replies: |
146748 | Aug 17,2019 08:44 AM UTC | Aug 19,2019 03:21 PM UTC | WinForms | 1 |
![]() |
Tags: SfDataGrid |
BindingSource bindingSource;
public Form1()
{
InitializeComponent();
bindingSource = new BindingSource();
this.Load += Form1_Load;
}
List<OrderInfo> list = new List<OrderInfo>();
private void Form1_Load(object sender, EventArgs e)
{
list.Add(new OrderInfo(1001, "Maria Anders", "Germany", "ALFKI", "Berlin"));
list.Add(new OrderInfo(1002, "Ana Trujilo", "Mexico", "ANATR", "Mexico D.F."));
list.Add(new OrderInfo(1003, "Antonio Moreno", "Mexico", "ANTON", "Mexico D.F."));
list.Add(new OrderInfo(1004, "Thomas Hardy", "UK", "AROUT", "London"));
list.Add(new OrderInfo(1005, "Christina Berglund", "Sweden", "BERGS", "Lula"));
bindingSource.DataSource = list;
this.sfDataGrid1.DataSource = bindingSource;
} |
This post will be permanently deleted. Are you sure you want to continue?
Sorry, An error occured while processing your request. Please try again later.
This page will automatically be redirected to the sign-in page in 10 seconds.