Click here to Skip to main content
15,891,951 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: Softwares for integration of Card swipe machine with .net application Pin
Christian Graus22-May-08 1:59
protectorChristian Graus22-May-08 1:59 
Questionhide the close button Pin
legend_of_zanado22-May-08 0:54
legend_of_zanado22-May-08 0:54 
AnswerRe: hide the close button Pin
eyeseetee22-May-08 1:02
eyeseetee22-May-08 1:02 
Questiondynamic add item in context menu of telerik component Pin
Piyush Vardhan Singh22-May-08 0:36
Piyush Vardhan Singh22-May-08 0:36 
QuestionRegarding webservice with ajax autocomplete??? Pin
Dotnetkanna21-May-08 22:31
Dotnetkanna21-May-08 22:31 
AnswerRe: Regarding webservice with ajax autocomplete??? Pin
led mike22-May-08 4:39
led mike22-May-08 4:39 
QuestionASP.NET Authentication and Scalability [modified] Pin
Waleed Eissa21-May-08 21:45
Waleed Eissa21-May-08 21:45 
QuestionProble with Custom property used to remove duplicates Pin
NetBot21-May-08 21:27
NetBot21-May-08 21:27 
Hi all,

I have a Gridview with with 4 columns....Brand,Category,Item,Stock

The user wants that the for all items belonging to same Brand and category, the Brand and Category needs to be shown only once. For this i wrote the following code but it doesn`t seems to work...

Public Class GridItem
    Dim _brand As String
    Dim _cat As String

    Public Sub GridItem()
        'Constructor
        _brand = ""
        _cat = ""
    End Sub

    Public Property Brand() As String
        Get
            Return _brand
        End Get
        Set(ByVal value As String)
            _brand = value
        End Set
    End Property

    Public Property Category() As String
        Get
            Return _cat
        End Get
        Set(ByVal value As String)
            _cat = value
        End Set
    End Property


End Class



Sub ItemGrid_RowDataBound(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.GridViewRowEventArgs)

        If e.Row.RowType = DataControlRowType.DataRow Then
            Dim GI As New GridItem
            GI.Brand = e.Row.Cells(0).Text
            GI.Category = e.Row.Cells(1).Text
            If uniquearr.Contains(GI) Then
                e.Row.Cells(0).Text = ""
                e.Row.Cells(1).Text = ""
            Else
                uniquearr.Add(GI)
            End If
        End If
    End Sub



uniquearr is declared global.Any help would be appreciated
AnswerRe: Proble with Custom property used to remove duplicates Pin
gnjunge21-May-08 22:15
gnjunge21-May-08 22:15 
Questiontooltip style as balloon for asp.net textbox control Pin
Deepml21-May-08 20:53
Deepml21-May-08 20:53 
AnswerRe: tooltip style as balloon for asp.net textbox control Pin
Laddie21-May-08 21:00
Laddie21-May-08 21:00 
GeneralRe: tooltip style as balloon for asp.net textbox control Pin
Deepml21-May-08 21:12
Deepml21-May-08 21:12 
GeneralRe: tooltip style as balloon for asp.net textbox control Pin
Laddie21-May-08 21:26
Laddie21-May-08 21:26 
AnswerRe: tooltip style as balloon for asp.net textbox control Pin
gnjunge21-May-08 21:20
gnjunge21-May-08 21:20 
QuestionWindow tray for web application Pin
please help21-May-08 20:04
please help21-May-08 20:04 
AnswerRe: Window tray for web application Pin
gnjunge21-May-08 21:01
gnjunge21-May-08 21:01 
GeneralRe: Window tray for web application Pin
please help21-May-08 21:40
please help21-May-08 21:40 
GeneralRe: Window tray for web application Pin
gnjunge21-May-08 22:19
gnjunge21-May-08 22:19 
GeneralRe: Window tray for web application Pin
please help21-May-08 23:18
please help21-May-08 23:18 
Questionwrite file Pin
Vijayitsb21-May-08 19:08
Vijayitsb21-May-08 19:08 
AnswerRe: write file Pin
Abhijit Jana21-May-08 19:36
professionalAbhijit Jana21-May-08 19:36 
GeneralRe: write file Pin
Vijayitsb21-May-08 19:49
Vijayitsb21-May-08 19:49 
GeneralRe: write file Pin
eyeseetee21-May-08 21:40
eyeseetee21-May-08 21:40 
QuestionCalendar Problem Pin
Revathij21-May-08 18:30
Revathij21-May-08 18:30 
AnswerRe: Calendar Problem Pin
Abhijit Jana21-May-08 19:00
professionalAbhijit Jana21-May-08 19:00 

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.