Hi,
I am using DataGrid control and am binding to the Dataset that is
returned from Business layer.
Now the problem is that am using hyperlink column for CaseID which is
displaying twice in the grid.
But it should not be like that.What could be the problem? Any idea.
Here is the code below:
CaseSearch.aspx
<asp:datagrid id="grdCaseSear ch" Width="800" Runat="server"
Headerstyle-BackColor="#9B9 BB4" AllowPaging="Tr ue"
OnPageIndexChan ged="NewPage" PagerStyle-Mode="NextPrev"
PagerStyle-NextPageText="N ext" PagerStyle-PrevPageText="P revious"
Font-Name="verdana" AllowCustomPagi ng="false"
AllowSorting="t rue" HeaderStyle-CssClass="table header"
HeaderStyle-ForeColor="#000 000" HeaderStyle-Font-Bold="True">
<AlternatingIte mStyle BackColor="#e2e 2e2" Font-Name="verdana"
/>
<Columns>
<asp:HyperLinkC olumn DataNavigateUrl Field="Case Number"
DataNavigateUrl FormatString="C aseInformationS ummary.aspx?Cas eN0={0}"
DataTextField=" Case Number" HeaderText="Cas e
Number"></asp:HyperLinkCo lumn>
</Columns>
</asp:datagrid>
CaseSearch.aspx .cs
Here is the method am calling :
public void DisplayCaseSear chResults()
{
DataSet ds;
SearchParams sp=new SearchParams ();
lblResultCase.V isible=true;
sp.CaseCatCode= ddlCaseCategory .SelectedItem.V alue;
if(txtToFiledDa te.Text.ToStrin g()!="" &&
txtFromFiledDat e.Text.ToString ()!="" )
{
sp.FiledTo = DateTime.Parse( txtToFiledDate. Text);
sp.FiledFrom = DateTime.Parse( txtFromFiledDat e.Text);
}
if(txtToFiledDa te.Text.ToStrin g()=="")
{
sp.FiledTo = new DateTime(0);
}
if(txtFromFiled Date.Text.ToStr ing()=="")
{
sp.FiledFrom = new DateTime(0);
}
sp.FirstName = txtFirstName.Te xt;
sp.MiddleName = txtMidName.Text ;
sp.LastName = txtLastName.Tex t;
sp.Organization = txtBusinessEnti ty.Text;
if (txtSearchCase. Text.ToString() == "")
{
if(txtCaseNo1.T ext.ToString()= ="" ||
txtCaseNo2.Text .ToString()=="" )
sp.DisplayCaseN um = null;
else
sp.DisplayCaseN um=txtCaseNo.Te xt + "-" + txtCaseNo1.Text + "-" +
txtCaseNo2.Text ;
}
else
sp.DisplayCaseN um = txtSearchCase.T ext;
//sp.DispositionD ate=DateTime.Mi nValue;
//Call BL for getting CaseSearchDatas et
Case BCase=new Case ();
BCase.SearchCas es(sp,out ds);
grdCaseSearch.D ataSource =ds;
grdCaseSearch.D ataBind();
}
Please let me know how can i solve this issue.
Thanks,
Vishnu 0 835 This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Junkguy |
last post by:
I need some help programmatically causing a row in a DataGrid to "flush"
its contents to its bound data (in Visual Studio 6 using Windows Forms
with C#).
My issue is I want to send an update to a database from a menu command
while the user is editing a DataGrid. This is unusual in regard to
examples and normal practice in that the cell of the DataGrid still has
the focus. In all examples I can find, the user normally presses a
button on...
|
by: Diego TERCERO |
last post by:
Hi...
I'm working on a tool for editing text resources for a family of software
product my company produces.
These text resources are found in a SQL Server database, in a table called
"Resource" with the following structure :
Resource{,en,fr,es}
Yes.. these are the only languages supported actually.
A couple of rows in that table would look like this :
|
by: Dave |
last post by:
Are there any add-on products or samples available that can do the following
in an vb.net datagrid
I want to compare 2 rows in a datagrid - one row from one database and
another row for another database.
So all the even rows would be from database one.
All the odd rows would be from database two.
Row one and two will have different formats and colors.
|
by: Earl |
last post by:
Any known fixes for the wacky right-alignment bug in the WinForms datagrid
(VS2003)?
I've tried Ken's workaround
(http://www.windowsformsdatagridhelp.com/default.aspx?ID=4bfab32d-9cff-4f5c-ba95-49bb9074a8bc),
but I get no alignment at all when calling the class.
George Shephard's site, while imminently useful, does not have an anwer for
this issue.
|
by: Brian Tkatch |
last post by:
I have a form with two DataGrids, which are kept in sync manually via
Stored PROCEDURE calls. That is, when a record is selected on the first
grid, a stored PROCEDURE is CALLed to Fill() the next second DataGrid's
DataSource. All that works very well. And, when there are no records to
display, it is simply left blank.
My issue is that when i scroll the first one, sometimes the second grid
shows a bunch of null values (a "new" record).
...
| |
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
| |
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |