Click here to Skip to main content
15,899,754 members
Home / Discussions / Visual Basic
   

Visual Basic

 
Questionxsl Pin
veerabagu21-Jan-07 22:14
veerabagu21-Jan-07 22:14 
AnswerRe: xsl Pin
Christian Graus21-Jan-07 22:17
protectorChristian Graus21-Jan-07 22:17 
QuestionHow can we populate a datagrid in VB.NET? Pin
salon21-Jan-07 22:13
salon21-Jan-07 22:13 
AnswerRe: How can we populate a datagrid in VB.NET? Pin
Christian Graus21-Jan-07 22:17
protectorChristian Graus21-Jan-07 22:17 
GeneralRe: How can we populate a datagrid in VB.NET? Pin
salon21-Jan-07 22:37
salon21-Jan-07 22:37 
GeneralRe: How can we populate a datagrid in VB.NET? Pin
Christian Graus21-Jan-07 22:42
protectorChristian Graus21-Jan-07 22:42 
GeneralRe: How can we populate a datagrid in VB.NET? Pin
salon21-Jan-07 22:53
salon21-Jan-07 22:53 
GeneralRe: How can we populate a datagrid in VB.NET? Pin
Christian Graus21-Jan-07 23:07
protectorChristian Graus21-Jan-07 23:07 
bhavna816 wrote:
I want the exact look like a mailbox

OK, then you really want to use a repeater or a grid control, not a dataview, because you want to expand and contract groups.

At the most basic level

Dim items as List<string> = new List<string> ' who knows what brackets VB uses ?

'Looping all the subfolders
For j = 1 To 2
sfolder = oFol.Item(j)
items.Add(sfolder.Name)

'Looping the Mailitems of the Subfolders with the sender's name, Subject,Recevied Time,Size of the mail

Dim i As Integer
For i = oItems.Count To 1 Step -1
items.Add(oMail.Subject)
Next
Next


myDataGrid.DataSource = items
myDataGrid.DataBind()

This will just give you a list.  You'd need to create a list of a struct or something to store more info, like waht is a folder.  Then you've have to write the code to render it accordingly.



Christian Graus - C++ MVP

'Why don't we jump on a fad that hasn't already been widely discredited ?' - Dilbert

GeneralRe: How can we populate a datagrid in VB.NET? Pin
shreekar22-Jan-07 0:16
shreekar22-Jan-07 0:16 
GeneralRe: How can we populate a datagrid in VB.NET? Pin
Christian Graus22-Jan-07 0:22
protectorChristian Graus22-Jan-07 0:22 
GeneralRe: How can we populate a datagrid in VB.NET? Pin
amaneet21-Jan-07 23:12
amaneet21-Jan-07 23:12 
GeneralRe: How can we populate a datagrid in VB.NET? Pin
Christian Graus21-Jan-07 23:13
protectorChristian Graus21-Jan-07 23:13 
GeneralRe: How can we populate a datagrid in VB.NET? Pin
salon21-Jan-07 23:48
salon21-Jan-07 23:48 
GeneralRe: How can we populate a datagrid in VB.NET? Pin
shreekar22-Jan-07 0:15
shreekar22-Jan-07 0:15 
GeneralRe: How can we populate a datagrid in VB.NET? Pin
salon22-Jan-07 0:42
salon22-Jan-07 0:42 
Questionwant to develop simple word processor in local languages Pin
cherinet21-Jan-07 21:50
cherinet21-Jan-07 21:50 
AnswerRe: want to develop simple word processor in local languages Pin
Christian Graus21-Jan-07 22:18
protectorChristian Graus21-Jan-07 22:18 
QuestionLucky Draw Pin
mactick21-Jan-07 20:48
mactick21-Jan-07 20:48 
AnswerRe: Lucky Draw Pin
Christian Graus21-Jan-07 21:34
protectorChristian Graus21-Jan-07 21:34 
GeneralRe: Lucky Draw Pin
mactick21-Jan-07 22:21
mactick21-Jan-07 22:21 
GeneralRe: Lucky Draw Pin
Christian Graus21-Jan-07 22:23
protectorChristian Graus21-Jan-07 22:23 
GeneralRe: Lucky Draw Pin
mactick22-Jan-07 19:04
mactick22-Jan-07 19:04 
GeneralRe: Lucky Draw Pin
Christian Graus22-Jan-07 19:42
protectorChristian Graus22-Jan-07 19:42 
GeneralRe: Lucky Draw Pin
mactick22-Jan-07 21:38
mactick22-Jan-07 21:38 
GeneralRe: Lucky Draw Pin
Christian Graus22-Jan-07 21:52
protectorChristian Graus22-Jan-07 21:52 

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.