Click here to Skip to main content
15,893,722 members
Home / Discussions / Database
   

Database

 
GeneralRe: showing parts of a table in datagrid Pin
nirdanon26-Aug-05 5:16
nirdanon26-Aug-05 5:16 
GeneralRe: showing parts of a table in datagrid Pin
SeMartens26-Aug-05 5:28
SeMartens26-Aug-05 5:28 
GeneralRe: showing parts of a table in datagrid Pin
Anonymous28-Aug-05 3:39
Anonymous28-Aug-05 3:39 
GeneralRe: showing parts of a table in datagrid Pin
miah alom26-Aug-05 11:09
miah alom26-Aug-05 11:09 
GeneralRe: showing parts of a table in datagrid Pin
Anonymous28-Aug-05 3:39
Anonymous28-Aug-05 3:39 
QuestionAlias for table names Pin
smita_roy26-Aug-05 1:45
smita_roy26-Aug-05 1:45 
AnswerRe: Alias for table names Pin
Not Active26-Aug-05 3:47
mentorNot Active26-Aug-05 3:47 
AnswerRe: Alias for table names Pin
softty28-Aug-05 8:27
softty28-Aug-05 8:27 
Create one DataView from Data Source or Manually replace those table name with your logic...

I have created a fake table, in real situation , query from database

/// Create DataSource :: select tablename,tablealias from all_tables

/*Code::*/


ICollection CreateDataSource() {
DataTable dt = new DataTable();
DataRow dr;

dt.Columns.Add(new DataColumn("TableName", typeof(string)));
dt.Columns.Add(new DataColumn("TableAlias", typeof(string)));

for (int i = 0; i < 9; i++) {
dr = dt.NewRow();

dr[0] = i.ToString() + " No Table";
dr[1] = i.ToString() + " No Alias";

dt.Rows.Add(dr);
}

DataView dv = new DataView(dt);
return dv;
}
// Fill the list with above mentioned datasource
private void FillList()
{
ListBox1.DataSource = CreateDataSource();
ListBox1..DataTextField="TableName";
ListBox1.DataValueField="TableAlias";

}



happy programming..

Pijush Biswas, Jaisalmer
softestpk@yahoo.com

love2code
Questiondynamic datasource on reporting services Pin
Ali Sapanci25-Aug-05 23:18
Ali Sapanci25-Aug-05 23:18 
AnswerRe: dynamic datasource on reporting services Pin
Ali Sapanci28-Aug-05 22:28
Ali Sapanci28-Aug-05 22:28 
Questionquerying a Acces DataBase Pin
Binary011025-Aug-05 21:26
Binary011025-Aug-05 21:26 
AnswerRe: querying a Acces DataBase Pin
beatles169227-Aug-05 2:22
beatles169227-Aug-05 2:22 
QuestionMore info on: Error Could Not Lock File Pin
Javolin25-Aug-05 12:28
Javolin25-Aug-05 12:28 
GeneralMDAC Sdk 2.8 Help Pin
dvptUml24-Aug-05 13:46
dvptUml24-Aug-05 13:46 
GeneralRecord locking ADO -net Pin
HahnTech24-Aug-05 9:47
HahnTech24-Aug-05 9:47 
GeneralRe: Record locking ADO -net Pin
miah alom25-Aug-05 8:36
miah alom25-Aug-05 8:36 
GeneralRe: Record locking ADO -net Pin
HahnTech25-Aug-05 8:51
HahnTech25-Aug-05 8:51 
GeneralRe: Record locking ADO -net Pin
Rob Graham26-Aug-05 11:48
Rob Graham26-Aug-05 11:48 
GeneralRe: Record locking ADO -net Pin
Alomgir Miah28-Aug-05 7:39
Alomgir Miah28-Aug-05 7:39 
QuestionOpen Source Data Modeling Software? Pin
Turtle Hand24-Aug-05 7:34
Turtle Hand24-Aug-05 7:34 
QuestionInsert Null Value to Foxpro table? Pin
Member 185596324-Aug-05 5:58
Member 185596324-Aug-05 5:58 
AnswerRe: Insert Null Value to Foxpro table? Pin
Michael Potter25-Aug-05 9:55
Michael Potter25-Aug-05 9:55 
GeneralRe: Insert Null Value to Foxpro table? Pin
Member 185596325-Aug-05 22:30
Member 185596325-Aug-05 22:30 
GeneralRe: Insert Null Value to Foxpro table? Pin
Michael Potter26-Aug-05 3:43
Michael Potter26-Aug-05 3:43 
GeneralRe: Insert Null Value to Foxpro table? Pin
Member 185596326-Aug-05 3:54
Member 185596326-Aug-05 3:54 

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.