Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
100% Quality Score
Upvotes Received
1
Posts with Upvotes
1
Upvoting Members
1
Downvotes Received
0
Posts with Downvotes
0
Downvoting Members
0
0 Endorsements
Ranked #2K
~4K People Reached
Favorite Forums

15 Posted Topics

Member Avatar for wrathyimp

The code need to be written in RowDataBound event: I have taken SupplierID column for demo,change according to your need.Columns starts with 0 index. Try this: protected void GridView1_RowDataBound(object sender, GridViewRowEventArgs e) { if (e.Row.RowType == DataControlRowType.DataRow) { DataRow pr = ((DataRowView)e.Row.DataItem).Row; int id = Convert.ToInt32(pr["SupplierID"]); if(id==1) e.Row.Cells[2].BorderColor = System.Drawing.Color.Red; …

Member Avatar for nilesh.umaretiy
0
2K
Member Avatar for psathish2

please visit [url]www.asp.net[/url] . [url]http://www.asp.net/learn/data-access/[/url] Mr. Scott goes through step by step about the control.Its one of the best tuttorial to learn and understand. Good luck.

Member Avatar for afroz khan
0
308
Member Avatar for Elmo_loves_you
Member Avatar for justapimp

The following can help you but i am sure whether this is the right way. While selecting the column check for null values like select ISNULL(class,-1) from student If the column class contains null values,the query returns -1 value. Using this value you can identity the column contains null value. …

Member Avatar for Kusno
0
358
Member Avatar for brightline

I have implemented radio button in a gridview,where in user can select any one of the radiobutton in the gridview.If you need i can post the solution.

Member Avatar for pfdsilva
0
179
Member Avatar for lagyossarian

You need to bind the labels text to some field value like Text='<%#Bind(ColumnName) %>' Since you are not binding i suppose you are getting the error for null values in lblLastName,lblFirstName

Member Avatar for postmaster
0
218
Member Avatar for rinkuchoudhury

This may not be the proper way,but serves the purpose. When user mouseover on button it displays the image and when on mouseout hides the image. aspx: [code] <script type="text/javascript"> function ShowImage() { value=document.getElementById("Image1") value.src="Images/Update.gif" value.width=15 value.height=15; value.style.visibility ='visible' } function HideImage() { value=document.getElementById("Image1") value.style.visibility ='hidden' } </script> <asp:Button ID="btn" …

Member Avatar for ravichandra
0
114
Member Avatar for rashmigs84

[CODE] Supplier: <asp:LinkButton ID="lnkSupplier" Text='<%#Bind("column_Name") %>' runat="server" CommandName="SupplierLink" CommandArgument='<%#Bind("Column_Name") %>'></asp:LinkButton></br> Category <asp:LinkButton ID="lnkCategory" Text='<%#Bind("column_Name") %>' runat="server" CommandName="CategoryLink" CommandArgument='<%#Bind("Column_Name") %>'></asp:LinkButton> [/CODE] Now check which link button is clicked by [CODE] protected void DataList1_ItemCommand(object source, DataListCommandEventArgs e) { if (e.CommandName == "SupplierLink")// Supplier Link button clicked ...... //can get the url/data from …

Member Avatar for rashmigs84
0
84
Member Avatar for namsSoftee

I have uploaded the video, you can download the same from the following link. [url]http://rapidshare.com/files/100312416/AspDotNetCompilationModel.zip.html[/url] Good Luck.

Member Avatar for namsSoftee
0
108
Member Avatar for rashmigs84
Member Avatar for s1986
Member Avatar for nandhinijp

I think you need to populate the second grid by clicking a button in a gridrow.I have made Button Type=Button and you can change either to Link type/Image type according to your requirement. ASPX: <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" Style="z-index: 100; left: 211px; position: absolute; top: 213px" OnRowDataBound="GridView1_RowDataBound" OnSelectedIndexChanged="GridView1_SelectedIndexChanged"> <Columns> <asp:BoundField …

Member Avatar for nandhinijp
0
233
Member Avatar for bhavna_816

Please go through the following link.You can do it yourself. Good Luck. [url]http://www.asp.net/learn/security/tutorial-02-vb.aspx[/url]

Member Avatar for SheSaidImaPregy
0
262
Member Avatar for bhavna_816
Member Avatar for ravichandra
0
154
Member Avatar for johnny.g

Try this: protected void GridView1_RowDeleting(object sender, GridViewDeleteEventArgs e) { Page.RegisterClientScriptBlock("KEY", "<script language='javascript'>" + "confirm('Do you want to delete?')" + "</script>"); }

Member Avatar for johnny.g
0
224

The End.