hi, i would like to change the row color in a data grid view at runtime. i made this code but it didn't work [code] foreach (DataGridViewRow dgvr in dgvReservations.Rows) { string status = dgvr.Cells[10].Value.ToString() ; if (status == "Canceled") { dgvr.DefaultCellStyle.BackColor = Color.Red; } } [/code] not even this … |
|
how to disable a button (that is found in a view) from a method in a controller ? |
|
i am developing a hit counter in my web application to increase whenever a new user visits my website so that i will now the number of hits from different users so far. but the problem is that it is increasing even though it is the same ip address |
|
i have a textbox and a button in list view ! now i would like to get the text/value of the textbox on btnClick event ! can some one tell me how i can get it? |
|
i am displaying products in list view ! now in <itemTemplate> i'm showing the product name by doing : <b> <%# Eval("ProductName") %></b> now i would like to also show the price of this product. but the price is in another table since prices are different for different types of … |
|
i'm trying to make an if statment in asp.net. the if statement is done in the listView . but its not working ! all the if statement is been viewed upon runtime <ItemTemplate> <div class="productItem"> <div> <img src='<%# Eval("ProductImagePath") %>' alt="<%#Eval("ProductName") %>" height="120" width="120" /> </a> </div> <div> <br /> … |
|
i have a website that i did using html and i used google chrome while doing it. now when i'm testing it on internet explorer the buttons and texts are moving. what can i do ?! |
|
how can i implement a function ex: 'add item' without using oop ?! |
|
|
|
hi, i have a system ans it is that users logs in with username and password .. and this is a risk since users can log in with others account.. now as a mitigation(avoid the risk) i listed that users can log in using finger print. now i have to … |
|
[CODE]<%if(Request.ServerVariables["SCRIPT_NAME"].Contains("PostOpinion.aspx")){Response.Write("Menu_selected");}else{Response.Write("Menu");}%>[/CODE] what is this code used for ? |
|
hi, i want to add a file path to my program. the file is stored in the folder where my solution is saved!! how can i code my path in the project so that my path will always be valid? because at the moment it is e:/..... and when i … |
|
what is the pseudo code to get data from the database and view it in your application?? |
|
hi, can i use count and top 6 in the same sql command ?? and also, how can i use inner joins to link guest id in reservation table with guest name from guest table |
|
what is the best regex to validate email. i would like to validate it to be a valid email not ex : [email]abcd@efgh.ijk[/email] |
|
i am doing a hotel reservation system and i wish to do a report of todays check in , displaying a list of arrivals .. how can i filter data in a report ? pls help.. i wish that the user can choose the date to filter |
|
I have a C# WinForm application. On my Buttons I use the '&' (in the .Text properties) for Hotkey access. The strange behavior is that the '&' is converted to the appropriate underscore while in design mode BUT DOES NOT appear at Runtime. At runtime the Hotkey functionality works, but … |
|
I have a C# WinForm application. On my Buttons I use the '&' (in the .Text properties) for Hotkey access. The strange behavior is that the '&' is converted to the appropriate underscore while in design mode BUT DOES NOT appear at Runtime. At runtime the Hotkey functionality works, but … |
|
i made a form that consists of labels !! this form is like an invoice .. all labels and lists contains the items and its const and at the end the total cost .. now i have a print button, and i would like to print the contents of the … |
|
Re:
Hi, i have a datagridview where i create new rows and give the name of the header myself eg: table 1 table 2 table 3 As you know the datagridview has the column headers and the rows.. The attachment with this thread has a red circle where i would like … |
|
hi, i am doing a hotel reservation system and i don't know how to get the rooms available ! can some one help pls ? i have these tables: [ICODE][B][U][COLOR="Red"]tblRoom[/COLOR][/U][/B] ID--int RoomNo--int RoomType--int BedType--varchar(25) RatePerNight--money MaxNoOfPersons--int [COLOR="red"][B][U]tblReservation[/U][/B][/COLOR] ID--int GuestID--int DateOfReservation--datetime NoOfPersons--int RoomID--int ArrivalDate--datetime DepartureDate--datetime TotalCost--money CheckIn--bit (-this is set to … |
|
hi, i have 2 data grid views in my form.. one displaying the guests and the other the reservations.. i would like to filter the reservations data grid view to display only reservations of the guest selected form the guest data grid view ... but i need help with this … |
|
Re:
i am trying to figure this exercise. i just started, but i dont understand what do i need to put where ? [CODE]using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace ShapesDemo { abstract class GeometricFigure { int height; int width; double area; /* public GeometricFigure(int Height, int Width) { … |
|
hi i have two table : Guest and Country.. which are linked by a country id foreign key in guest table .. now in my program i would like to do a data grid view showing all guests details .. how can i show the name of the country instead … |
|
hi, for a 'total cost' field in sql i used the data type 'money'.. in c# what data type should i use to match that of the sql?? decimal or float?? thanks |
|
hi, i have added a new tool to the toolbox in visual studio by adding an existing solution to my solution and automatically a new tool was added to the toolbox. now, how can i make it portable so that when i open my solution on another pc, it will … |
0 Reputation Points
1 Endorsement
Ranked #855
Ranked #3K
Ranked #4K
~11.9K People Reached
Favorite Forums
Software Development
x
56
Web Development
x
13
Computer Science
x
3
Meta DaniWeb
x
2
UI / UX Design
x
1