Click here to Skip to main content
15,916,949 members
Home / Discussions / C#
   

C#

 
Questionmapping output paramters in ssis Pin
l.laxmikant7-Dec-08 22:18
l.laxmikant7-Dec-08 22:18 
QuestionError:The name 'Container' does not exist in the current context Pin
Exelioindia7-Dec-08 21:59
Exelioindia7-Dec-08 21:59 
AnswerRe: Error:The name 'Container' does not exist in the current context Pin
leppie7-Dec-08 22:48
leppie7-Dec-08 22:48 
AnswerRe: Error:The name 'Container' does not exist in the current context Pin
Hossein Mayboudi28-Mar-11 7:06
Hossein Mayboudi28-Mar-11 7:06 
Questionhow to maximize picture box & listview? Pin
ping_jacob7-Dec-08 21:41
ping_jacob7-Dec-08 21:41 
AnswerRe: how to maximize picture box & listview? Pin
Lev Danielyan7-Dec-08 21:48
Lev Danielyan7-Dec-08 21:48 
QuestionHow to Set StartupObject Property of Project at runtime. Pin
am 20097-Dec-08 20:34
am 20097-Dec-08 20:34 
QuestionGMT Pin
srinivaskonijeti7-Dec-08 20:07
srinivaskonijeti7-Dec-08 20:07 
AnswerRe: GMT Pin
Harvey Saayman7-Dec-08 20:50
Harvey Saayman7-Dec-08 20:50 
AnswerRe: GMT Pin
Colin Angus Mackay7-Dec-08 21:33
Colin Angus Mackay7-Dec-08 21:33 
AnswerRe: GMT Pin
Brij7-Dec-08 21:36
mentorBrij7-Dec-08 21:36 
Questiondatagridview Pin
kulandaivel_mca20077-Dec-08 19:32
kulandaivel_mca20077-Dec-08 19:32 
AnswerRe: datagridview Pin
tasumisra7-Dec-08 20:24
tasumisra7-Dec-08 20:24 
GeneralRe: datagridview Pin
Harvey Saayman7-Dec-08 20:52
Harvey Saayman7-Dec-08 20:52 
GeneralRe: datagridview Pin
tasumisra7-Dec-08 20:57
tasumisra7-Dec-08 20:57 
GeneralRe: datagridview Pin
Harvey Saayman7-Dec-08 20:59
Harvey Saayman7-Dec-08 20:59 
GeneralRe: datagridview Pin
tasumisra7-Dec-08 21:04
tasumisra7-Dec-08 21:04 
GeneralRe: datagridview Pin
Harvey Saayman7-Dec-08 21:10
Harvey Saayman7-Dec-08 21:10 
GeneralRe: datagridview Pin
tasumisra7-Dec-08 21:13
tasumisra7-Dec-08 21:13 
GeneralRe: datagridview Pin
Harvey Saayman7-Dec-08 21:17
Harvey Saayman7-Dec-08 21:17 
GeneralRe: datagridview Pin
tasumisra7-Dec-08 21:39
tasumisra7-Dec-08 21:39 
GeneralRe: datagridview Pin
Harvey Saayman7-Dec-08 21:48
Harvey Saayman7-Dec-08 21:48 
AnswerRe: datagridview Pin
Lev Danielyan7-Dec-08 20:51
Lev Danielyan7-Dec-08 20:51 
Hi,

Why don't you use the BindingSource Filter property?

For example, you can have myDataSource.Filter = "City = 'DOWNTOWN'"

Here is the example from MSDN:

private void PopulateDataViewAndFilter() {
DataSet set1 = new DataSet();

// Some xml data to populate the DataSet with.
string musicXml =
"" +
"<music>" +
"<recording><artist>Coldplay<cd>X&Y" +
"<recording><artist>Dave Matthews<cd>Under the Table and Dreaming" +
"<recording><artist>Dave Matthews<cd>Live at Red Rocks" +
"<recording><artist>Natalie Merchant<cd>Tigerlily" +
"<recording><artist>U2<cd>How to Dismantle an Atomic Bomb" +
"";

// Read the xml.
StringReader reader = new StringReader(musicXml);
set1.ReadXml(reader);

// Get a DataView of the table contained in the dataset.
DataTableCollection tables = set1.Tables;
DataView view1 = new DataView(tables[0]);

// Create a DataGridView control and add it to the form.
DataGridView datagridview1 = new DataGridView();
datagridview1.AutoGenerateColumns = true;
this.Controls.Add(datagridview1);

// Create a BindingSource and set its DataSource property to
// the DataView.
BindingSource source1 = new BindingSource();
source1.DataSource = view1;

// Set the data source for the DataGridView.
datagridview1.DataSource = source1;

source1.Filter = "artist = 'Dave Matthews'";
}

Regards,
Lev

AnswerRe: datagridview Pin
Harvey Saayman7-Dec-08 20:55
Harvey Saayman7-Dec-08 20:55 
AnswerRe: datagridview Pin
V.7-Dec-08 21:12
professionalV.7-Dec-08 21:12 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.