C# Programming
04-01-2009, 08:01 PM
I have to list boxes...and i have a datagrid with binded to complete table..and i am using DataGridCombocolumn with displaystyle as nothing to display the values from master tables in relation instead of their IDs...
On selection change event of second list box i put this filter...values in both list boxes are selected...it shows correct values in debug mode........
MyBindingSource.Filter = "Column1="+cbCol1.SelectedValue+" AND Column2= "+cbCol2.SelectedValue;
it gives following error
Syntax error: Missing operand before 'And' operator.
On selection change event of second list box i put this filter...values in both list boxes are selected...it shows correct values in debug mode........
MyBindingSource.Filter = "Column1="+cbCol1.SelectedValue+" AND Column2= "+cbCol2.SelectedValue;
it gives following error
Syntax error: Missing operand before 'And' operator.