[code]
private void textBox1_TextChanged(object sender, EventArgs e)
{
string str = textBox1.Text.Trim();
if (!string.IsNullOrEmpty(str))
{
// Error in here
Expression
this.gridControl1.DataSource = this.lstCustomData.Where
}
else
this.gridControl1.DataSource = this.lstCustomData;
this.gridControl1.RefreshDataSource();
}
public class CustomData
{
// Error in here
public int col1 { get; set; }
public string col2 { get; set; }
public string col3 { get; set; }
public int col4 { get; set; }
}
[/code]
Dong Lam TrienPosted Feb 25, 2015, 10:19 PM
Afzaal Ahmad ZeeshanPosted Feb 25, 2015, 4:10 AM
You can just cut short the resources or keywords that were added to C# after 2005, and you will have the code written in C# 2005.