Click here to Skip to main content
15,891,704 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
QuestionNeed A Help Of Nested Grid View Pin
meetnneel3-Jun-11 2:30
meetnneel3-Jun-11 2:30 
QuestionRe: Need A Help Of Nested Grid View Pin
Eddy Vluggen3-Jun-11 2:53
professionalEddy Vluggen3-Jun-11 2:53 
AnswerRe: Need A Help Of Nested Grid View Pin
meetnneel3-Jun-11 2:58
meetnneel3-Jun-11 2:58 
AnswerRe: Need A Help Of Nested Grid View Pin
Eddy Vluggen3-Jun-11 3:16
professionalEddy Vluggen3-Jun-11 3:16 
AnswerRe: Need A Help Of Nested Grid View [modified] Pin
shankysharma863-Jun-11 4:37
shankysharma863-Jun-11 4:37 
GeneralRe: Need A Help Of Nested Grid View Pin
Pete O'Hanlon3-Jun-11 7:51
mvePete O'Hanlon3-Jun-11 7:51 
AnswerRe: Need A Help Of Nested Grid View Pin
Prasanta_Prince9-Jun-11 0:51
Prasanta_Prince9-Jun-11 0:51 
AnswerRe: Need A Help Of Nested Grid View Pin
robertalis20-Jul-11 21:47
robertalis20-Jul-11 21:47 
Hello

I am not much experienced but I can give you an overview

Protected Sub grdMaster_RowDataBound(ByVal sender As Object, _
          ByVal e As System.Web.UI.WebControls.GridViewRowEventArgs) _
          Handles grdMaster.RowDataBound
    Dim objListItem As DataControlRowState
    objListItem = e.Row.RowState
    Dim intMAsterID1 As Integer
    If e.Row.RowType = DataControlRowType.DataRow Then
        Dim grd As GridView
        If objListItem = 5 Then
            grd = CType(e.Row.FindControl("grdChildGridEdit"), GridView)
            MasterTableID = Convert.ToInt32(CType(e.Row.DataItem, _
                            DataRowView).Row.ItemArray(0).ToString())
            intMAsterID1 = MasterTableID
        ElseIf objListItem = DataControlRowState.Normal Or _
               objListItem = DataControlRowState.Alternate Then
            grd = CType(e.Row.FindControl("grdChildGridNormal"), GridView)
            intMAsterID1 = Convert.ToInt32(CType(e.Row.DataItem, _
                           DataRowView).Row.ItemArray(0).ToString())
            Dim lnkButtton As LinkButton
            lnkButtton = CType(e.Row.FindControl("Edit"), LinkButton)
            If lnkButtton IsNot Nothing Then
                lnkButtton.CommandName = "Edit Master"
                lnkButtton.CommandArgument = intMAsterID1.ToString
            End If
        ElseIf objListItem = DataControlRowState.Edit Then
            grd = CType(e.Row.FindControl("grdChildGridEdit"), GridView)
            MasterTableID = Convert.ToInt32(CType(e.Row.DataItem, _
                            DataRowView).Row.ItemArray(0).ToString())
            intMAsterID1 = MasterTableID
        End If
        If grd IsNot Nothing Then
            grd.DataSourceID = ""
            grd.DataSource = ChildDataSource
            ChildDataSource.SelectParameters(_
               "MasterTableID").DefaultValue = intMAsterID1
            ChildDataSource.Select()
            grd.DataBind()
        End If
    End If
End Sub


visit here to solve your .net grid related problem http://www.dapfor.com/Help/NetGrid/Index.aspx[^]
GeneralMessage Removed Pin
3-Jun-11 2:06
meetnneel3-Jun-11 2:06 
AnswerRe: Bind Sub Grid Pin
Eddy Vluggen3-Jun-11 2:21
professionalEddy Vluggen3-Jun-11 2:21 
QuestionNot able to save the file of HttpPostedfile from test method Pin
vnr3-Jun-11 1:34
vnr3-Jun-11 1:34 
AnswerRe: Not able to save the file of HttpPostedfile from test method Pin
MicroVirus3-Jun-11 1:48
MicroVirus3-Jun-11 1:48 
Question.NET development using Apple Computer Pin
RobCroll28-May-11 14:04
RobCroll28-May-11 14:04 
AnswerRe: .NET development using Apple Computer Pin
Dave Kreskowiak28-May-11 18:21
mveDave Kreskowiak28-May-11 18:21 
AnswerRe: .NET development using Apple Computer Pin
Not Active29-May-11 2:57
mentorNot Active29-May-11 2:57 
Question.NET app can't connect to remote NamedPipe when executed by SQL Pin
TrustTheMath27-May-11 8:22
TrustTheMath27-May-11 8:22 
AnswerRe: .NET app can't connect to remote NamedPipe when executed by SQL Pin
jschell27-May-11 8:43
jschell27-May-11 8:43 
GeneralRe: .NET app can't connect to remote NamedPipe when executed by SQL Pin
TrustTheMath27-May-11 9:56
TrustTheMath27-May-11 9:56 
GeneralRe: .NET app can't connect to remote NamedPipe when executed by SQL Pin
jschell27-May-11 14:04
jschell27-May-11 14:04 
Questionchange datagridrow color after add it Pin
Defender-NF25-May-11 5:46
Defender-NF25-May-11 5:46 
AnswerRe: change datagridrow color after add it Pin
Not Active25-May-11 6:24
mentorNot Active25-May-11 6:24 
AnswerRe: change datagridrow color after add it Pin
Pete O'Hanlon25-May-11 7:02
mvePete O'Hanlon25-May-11 7:02 
GeneralRe: change datagridrow color after add it Pin
Defender-NF25-May-11 8:26
Defender-NF25-May-11 8:26 
GeneralRe: change datagridrow color after add it Pin
Pete O'Hanlon25-May-11 8:44
mvePete O'Hanlon25-May-11 8:44 
GeneralRe: change datagridrow color after add it Pin
Defender-NF25-May-11 8:48
Defender-NF25-May-11 8:48 

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.