Click here to Skip to main content
15,905,233 members
Home / Discussions / C#
   

C#

 
AnswerRe: Implementing Application Object Pin
Muammar©10-Sep-08 15:08
Muammar©10-Sep-08 15:08 
GeneralRe: Implementing Application Object Pin
Kevin Marois10-Sep-08 15:26
professionalKevin Marois10-Sep-08 15:26 
AnswerRe: Implementing Application Object Pin
Mark Churchill10-Sep-08 16:18
Mark Churchill10-Sep-08 16:18 
QuestionOutput video to VGA? Pin
DarthDie10-Sep-08 13:56
DarthDie10-Sep-08 13:56 
AnswerRe: Output video to VGA? Pin
Mark Salsbery10-Sep-08 16:14
Mark Salsbery10-Sep-08 16:14 
Questiondatagridview - quick question Pin
nelsonpaixao10-Sep-08 12:46
nelsonpaixao10-Sep-08 12:46 
AnswerRe: datagridview - quick question Pin
Mbah Dhaim10-Sep-08 13:14
Mbah Dhaim10-Sep-08 13:14 
QuestionHide/Unhide calendar in a gridview c# Pin
DanielHH10-Sep-08 11:29
DanielHH10-Sep-08 11:29 
I am trying to hide/unhide a calendar that I created inside a gridview. I would like to get it hidden when I click the "Update" option in the gridview. Now after click the "Update" the calendar comes up because I don't have any code defined.
I was thinking if I add some code inside the RowCommand event it could works but I was unable to find the control. I tried this but I got errors in the syntax.

Calendar Cal = (Calendar)Gridview.Findcontrol("Cal1")
Cal.Visible = false;

P.S. I created a button named "CalMABD" to bring the calendar up after click it I tried adding a "onclick" event but I have the same issue to findcontrol of the calendar.

Here is the HTML

<asp:templatefield headertext="MABD" itemstyle-horizontalalign="Center" xmlns:asp="#unknown">
<itemtemplate>
<asp:label width="60" font-size="Smaller" id="LabelMABD" runat="server" text="<%# Eval(" mabd")="" %&gt;"="">

<edititemtemplate>
<asp:textbox width="60" font-size="Smaller" id="txtMABD" runat="server" text="<%#Bind(" mabd")="" %&gt;"="" autopostback="true" ontextchanged="Deltaprojected_OnTextChanged">

<asp:calendar>
ID="Cal1" runat="server" OnSelectionChanged="Cal1_SelectionChanged"
BackColor="White"
BorderColor="#999999" CellPadding="4" DayNameFormat="Short" Font-Names="Verdana"
Font-Size="8pt" ForeColor="Black" Height="180px" Width="200px" >
<selecteddaystyle backcolor="#666666" font-bold="True" forecolor="White">
<todaydaystyle backcolor="#CCCCCC" forecolor="Black">
<selectorstyle backcolor="#CCCCCC">
<weekenddaystyle backcolor="#FFFFCC">
<othermonthdaystyle forecolor="#808080">
<nextprevstyle verticalalign="Bottom">
<dayheaderstyle backcolor="#CCCCCC" font-bold="True" font-size="7pt">
<titlestyle backcolor="#999999" bordercolor="Black" font-bold="True">






<asp:templatefield itemstyle-horizontalalign="Center" xmlns:asp="#unknown">
<edititemtemplate>





I will appreciate any help on this! Thanks

Daniel HH

AnswerRe: Hide/Unhide calendar in a gridview c# Pin
leppie10-Sep-08 21:56
leppie10-Sep-08 21:56 
QuestionSqlCommand : executed SQL statement Pin
dlarkin7710-Sep-08 9:22
dlarkin7710-Sep-08 9:22 
AnswerRe: SqlCommand : executed SQL statement Pin
Giorgi Dalakishvili10-Sep-08 9:46
mentorGiorgi Dalakishvili10-Sep-08 9:46 
AnswerRe: SqlCommand : executed SQL statement Pin
Pete O'Hanlon10-Sep-08 9:49
mvePete O'Hanlon10-Sep-08 9:49 
AnswerRe: SqlCommand : executed SQL statement Pin
dlarkin7710-Sep-08 9:51
dlarkin7710-Sep-08 9:51 
AnswerRe: SqlCommand : executed SQL statement Pin
Wendelius10-Sep-08 10:37
mentorWendelius10-Sep-08 10:37 
Questiongenerics with nullable value Pin
md_refay10-Sep-08 8:50
md_refay10-Sep-08 8:50 
AnswerRe: generics with nullable value Pin
Pete O'Hanlon10-Sep-08 9:02
mvePete O'Hanlon10-Sep-08 9:02 
GeneralRe: generics with nullable value Pin
User 665810-Sep-08 9:07
User 665810-Sep-08 9:07 
AnswerRe: generics with nullable value Pin
Guffa10-Sep-08 11:13
Guffa10-Sep-08 11:13 
Questionlocalization and Globalization but in other way Pin
rahuladya10-Sep-08 7:55
rahuladya10-Sep-08 7:55 
AnswerRe: localization and Globalization but in other way Pin
User 665810-Sep-08 8:09
User 665810-Sep-08 8:09 
GeneralRe: localization and Globalization but in other way Pin
rahuladya10-Sep-08 8:25
rahuladya10-Sep-08 8:25 
GeneralRe: localization and Globalization but in other way Pin
User 665810-Sep-08 8:30
User 665810-Sep-08 8:30 
GeneralRe: localization and Globalization but in other way Pin
Pete O'Hanlon10-Sep-08 9:05
mvePete O'Hanlon10-Sep-08 9:05 
GeneralRe: localization and Globalization but in other way Pin
rahuladya10-Sep-08 9:37
rahuladya10-Sep-08 9:37 
QuestioncryptoAPI for Assymetric type Pin
Suresh Ramasamy10-Sep-08 7:32
Suresh Ramasamy10-Sep-08 7:32 

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.