IRC Networks
Irc Logs Stats
Start date: 2007-09-27 02:48:27
Last update: 2008-10-24 20:19:38
Channels: 41
Logged Lines: 6230436
Size: 1825.55 MB
Powered by
Channel Info
Network: freenodeChannel: #csharp |
Search in www.irclog.org
Log from #csharp at freenode 2006-07-20
Pages: < Prev
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
[23:43]<cgdggvgus>exactly, in plain english, italian, spanish or whatever language you speak, what do you want to do?
[23:43]<sljjcn>something like a=ds.table.row
[23:43]<sljjcn>where a is a string
[23:44]<gjrvcxnne>well, .Tables is the collection of tables
[23:44]<cgdggvgus>a= (string) ds.Tables['tablename'].Rows[index]
[23:44]<sljjcn>goat i know
[23:44]<cgdggvgus>try that
[23:44]<sljjcn>alredy tried
[23:44]<cgdggvgus>so?
[23:44]<sljjcn>the compiler says me that do not know the talble
[23:45]<sljjcn>one moment i say you the exact error
[23:45]<sljjcn>a = ds.Tables.UTENTI.UTCOD;
[23:45]<mjzymygo>257 = 0x100
[23:46]<sljjcn>Error 1 'System.Data.DataTableCollection' does not contain a definition for 'UTENTI' D:\Gian Paolo\Sviluppo\Interventi\Interventi.Client\Forms\frmLogin.cs 37 27 Interventi.Client
[23:46]<gjrvcxnne>Moridin8: no, 257 == 0x101
[23:46]<sljjcn>System.Data.DataTableCollection' does not contain a definition for 'UTENTI'
[23:46]<mjzymygo>GoatCheez: *doh*
[23:46]<mjzymygo>hehe...
[23:46]<sljjcn>cause now the dataset is in the form
[23:46]<sljjcn>not in the class
[23:47]<gjrvcxnne>Spooke: a = ds.Tables["UTENI"].Rows["UTCOD"]
[23:47]<cgdggvgus>mmmmm...
[23:47]<gjrvcxnne>kem: correct me on the row
[23:47]<gjrvcxnne>it's probably wrond
[23:47]<cgdggvgus>maybe a = ds.Tables['UTENI'].Column['UTCOD']
[23:48]<gjrvcxnne>yeah, that looks more like the right syntax
[23:48]<cgdggvgus>I guess you want the content of one column of your row
[23:48]<cgdggvgus>not the complete row
[23:48]<sljjcn>The best overloaded method match for 'System.Data.DataRowCollection.this[int]' has some invalid arguments
[23:48]<sljjcn>yes kementeus
[23:48]<cgdggvgus>ok, so put the number of the column
[23:48]<gjrvcxnne>that was row
[23:49]<gjrvcxnne>strings might be able to work for columns still
[23:49]<cgdggvgus>Rows return the complete row, not the column
[23:51]<sljjcn> a = ds.Tables["UTENI"].Columns["UTCOD"].ToString(); doesn't go!
[23:52]<sljjcn>a = ds.Tables["UTENTI"].Columns[1].ToString(); this returns me the name of the column!
[23:53]<sljjcn>i whant the data contained in one row of this column!
[23:53]<sljjcn>:(
[23:53]<cxrfnm>Spooke, very simple
[23:53]<cgdggvgus>mmmmm...
[23:53]<cxrfnm>DataRow dr = ds.Tables["tablename"].Rows["ColumnName"][rowIndex]
[23:54]<cxrfnm>Spooke, that gives you the complete row in dr
[23:54]<cxrfnm>sorry, DataRow dr = ds.Tables["tablename"].Rows[rowIndex]
[23:54]<cxrfnm>and then
[23:54]<cxrfnm>string fieldvalue = dr["fieldname"].ToString();
[23:56]<cgdggvgus>khaled is right :D
[23:57]<sljjcn>System.Data.DataRow.DataRow(System.Data.DataRowBuilder)' is inaccessible due to its protection level
[23:57]<sljjcn>????
[23:58]<cgdggvgus>DataRow dr = ds.Tables["tablename"].Rows["ColumnName"][rowIndex]
[23:58]<cgdggvgus>sorry...
[23:59]<cgdggvgus>what exaclty did you wrote?







