Thanks Jason again...I think I am getting there...one more question what if the primary key is a combination keys
what do I do here
Dim Parent As DataColumn = dsTabulation.Tables("TabDetails").Columns("contid")
Dim child As DataColumn =...
Jason, here is the two tables i have on my ds. what do I substitute this ([ds relationship]) with. thanks hopefully this is the last question :)
adTabulation.Fill(dsTabulation, "Tabulation")
adTabulation.Fill(dsTabulation, "TabDetails")
gvTabulation.DataSource = dsTabulation...
Thanks Jason for the help.
I am not sure I covert it right. can you tell if I make a mistake. thanks
If e.Row.RowType = DataControlRowType.DataRow Then
Dim s As Tabulation = CType(e.Row.FindControl("Tabulation1"), Tabulation)
s.SelectParameters(0).DefaultValue = e.Row.Cells(0).Text
End If
I got this example from
http://msdn2.microsoft.com/en-us/library/aa992038(VS.80).aspx
but the example only works with sqldatasource
If e.Row.RowType = DataControlRowType.DataRow Then
Dim s As SqlDataSource = CType(e.Row.FindControl("SqlDataSource2"), SqlDataSource)...
Thank you Jason, as you suggested my wish was to use nested gridview and I do not have much experience with that Do you have some simple example on how to work with nested grid view . thanks
I have a gridview with contractid as one column. what I would like to do here is that if the all the first contract id are the same I want to use grey as a background and when the next contid are the same I want white back ground and when the next contract id the same I want to use grey again...
Mark,
Actually I got the code from your website. thank you for for doing that.
I have two questions one is after I add this code the validation controls are not working for me. when I click the button I donot get the validation message and it just run the code.
second I would like to chang the...
Thank you for your help. I am still confused though I am only able to see the id for Button which is tabSearch but not the name for the button. I am working with vs 2005. thanks Mark
Thank you Mark for your help. I add this on the page load event and the text focous is working but the default button is not working yet
tabSearch is the id for the button...I am not sure where Button1 is.
thanks
txtDescription.Focus()
Page.Form.DefaultButton =...
I would like both the text box to get focous and click button to get the defaultbutton but I do not have the <form id="form1" runat="server" >on because I have master page. How can this be acomplished? thanks
Hi,
How can I sort this in desc. order like Q4-2007, Q3-2007....like that. thanks
Sub QuarterSelector()
Dim QSelector As SortedList
QSelector = New SortedList
QSelector.Add("2003-1", " Q1-2003")
QSelector.Add("2003-2", " Q2-2003")...
I change it to this and seems to work ok...please let me know if there is another better way ...thanks
Sub QuarterSelector()
Dim QSelector As SortedList
QSelector = New SortedList
QSelector.Add("2007-1", " Q1-2007")
QSelector.Add("2007-2", " Q2-2007")...
I would like to have all the quarter for 2007 together like this. How can I fix this. thanks
Q1-2007
Q2-2007
Q3-2007
Q4-2007
Q1-2006
Q2-2006
Q3-2006
Q4-2006
Q1-2005
Q2-2005
Q3-2005
Q4-2005
right now in my dropdown it displays like this
Q1-2005
Q1-2006
Q1-2007
Q2-2005
Q2-2006...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.