|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
|
hi everyone
i dont noe where to post this msg... i guess i just post it here i have a problem here.. i am using dataset to store information from a table in the database.. then out put the result and sace it into a note pad ..txt file.. i can get the fields all out but i have a problem.. i cant get the column header.. can i know to do do it?? chris Hi Chris,
Following code snippet shows how to get column header in DataSet (actually DataTable): foreach (DataColumn col in ds.Tables[0].Columns) { string header = col.ColumnName; } HTH Elton Wang elton_w***@hotmail.com >-----Original Message----- information from a>hi everyone > >i dont noe where to post this msg... i guess i just post it here > >i have a problem here.. i am using dataset to store >table in the database.. then out put the result and sace it into a note pad>..txt file.. i can get the fields all out but i have a problem.. i cant getShow quoteHide quote >the column header.. can i know to do do it?? > >chris > >-- >Message posted via http://www.dotnetmonster.com >. >
ASP.NET - How to bind() a dataset to a datagrid using javascript from the client
Pop-up Message Box binding ArrayLists to DataGrids-- how to name the columns? Newbie: Datagrid Comes Up Blank?!? Subclassing a DataGrid control How Do I Conditionally Remove An EditCommandColumn? Two questions: datagrid with string[] and how to differentiate between columns trying to display header only HOWTO: Bring that row back into focus ... Wrong window gets the content |
|||||||||||||||||||||||