TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
sumaira manzoor hussain khan
NA
241
251.1k
My data in not displaying in my grid
Dec 18 2011 7:34 AM
ASSALAM-O-ALIKUM BROTHRS N SISTRER;
ABOUT MY REQUIREMENT:
MY REQUIREMENT IS, I WANT TO GET DATA OF "PATIENT SURGERY" N "SURGERY" IN "MAIN SURGERY TABLE". I AM ALSO SENDING MY TARGET FIGURE FOR UNDERSTANDING OF MY NEEDS. IN THE BELOW, I MENTIONED MY CODE. IN THIS I USED JOIN QUERY . BUT THE PROBLEM IS MY DATA IS NOT DISPLAY IN THE GRID.
public void load_grid()
{ SqlCommand cmd = new SqlCommand("select s.[surgery id],s.[patient surgery id],s.[surgery name],s.[surgery type id],s.[type name],s.[charges],s.[pv id],s.[patient visit charges] from clinicMainsurgery s inner join surg su on su.[surgery id]=s.[surgery id] inner join patientsurgery ps on ps.[patient surgery id]=s.[patient surgery id]");
cmd.Connection = Connection.get();
SqlDataAdapter da = new SqlDataAdapter(cmd);
DataSet ds = new DataSet();
da.SelectCommand = cmd;
da.Fill(ds);
GridView_surgery.DataSource = ds;
GridView_surgery.DataBind();
}
protected void Button_sugeries_Click(object sender, EventArgs e)
{
load_grid();
}
Attachment:
my target figure.rar
Reply
Answers (
4
)
Help me with triangle.
Visual C# 2010 Express