Click here to Skip to main content
15,890,845 members
Home / Discussions / Windows Forms
   

Windows Forms

 
GeneralRe: Incapable of listening for Mouse Events on UserControl Pin
Luc Pattyn20-May-10 17:28
sitebuilderLuc Pattyn20-May-10 17:28 
QuestionDataGridView "not always"/sometimes adjusting row height for wordwrap Pin
sa_blackmon15-May-10 5:37
sa_blackmon15-May-10 5:37 
AnswerRe: DataGridView "not always"/sometimes adjusting row height for wordwrap Pin
Henry Minute16-May-10 3:56
Henry Minute16-May-10 3:56 
GeneralRe: DataGridView "not always"/sometimes adjusting row height for wordwrap Pin
sa_blackmon17-May-10 3:14
sa_blackmon17-May-10 3:14 
GeneralRe: DataGridView "not always"/sometimes adjusting row height for wordwrap Pin
Henry Minute17-May-10 3:20
Henry Minute17-May-10 3:20 
QuestionDisabling cell selection in DataGrid Pin
JW73814-May-10 8:11
JW73814-May-10 8:11 
AnswerRe: Disabling cell selection in DataGrid Pin
Peace ON25-May-10 20:28
Peace ON25-May-10 20:28 
Questionhow to connect reportviewer to dataset Pin
vikas shukla14-May-10 3:09
vikas shukla14-May-10 3:09 
hi sir

i am connecting the reportviewer to dataset but i am fail.i am using following code.please help me.


using System;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using Microsoft.Reporting.WebForms;
using System.Data.SqlClient;


public partial class _Default : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
ReportViewer1.Visible = false;
}
protected void Button1_Click(object sender, EventArgs e)
{

}
protected void Button1_Click1(object sender, EventArgs e)
{
ReportViewer1.Visible = true;
SqlConnection con = new SqlConnection("server=DC-12\\SQLSERVER2005;uid=sa;pwd=start;database=Vikas_Data");
SqlCommand cmd = new SqlCommand();
cmd.CommandText = "seldata";
string pn = TextBox1.Text;
cmd.Parameters.AddWithValue("@pn", pn);
cmd.CommandType = CommandType.StoredProcedure;
cmd.Connection = con;
SqlDataAdapter adap = new SqlDataAdapter();
adap.SelectCommand = cmd;
DataSet ds = new DataSet ();


adap.Fill(ds, "table");
ReportViewer1.LocalReport.ReportPath = "MyFirst.rdlc";

ReportDataSource rds = new ReportDataSource();
rds.value=ds.Tables[0];
ReportViewer1.LocalReport.DataSources.Add(rds);

ReportViewer1.LocalReport.Refresh();
}
}

there is no error .but data will not be show in report viewer.

please help me .as soon as possible .what may be the issue.
AnswerRe: how to connect reportviewer to dataset Pin
Illuminaries4-Jun-10 4:50
Illuminaries4-Jun-10 4:50 
QuestionCould use some guidance on Word Checkboxes Pin
msx2313-May-10 11:47
msx2313-May-10 11:47 
QuestionPassing textbox value into instance Pin
Member 447022311-May-10 22:04
Member 447022311-May-10 22:04 
AnswerRe: Passing textbox value into instance Pin
Henry Minute13-May-10 13:06
Henry Minute13-May-10 13:06 
AnswerRe: Passing textbox value into instance Pin
Luc Pattyn13-May-10 13:13
sitebuilderLuc Pattyn13-May-10 13:13 
Question'Deck of cards' tab-like functionality Pin
span23711-May-10 20:10
span23711-May-10 20:10 
AnswerRe: 'Deck of cards' tab-like functionality Pin
Som Shekhar11-May-10 20:46
Som Shekhar11-May-10 20:46 
GeneralRe: 'Deck of cards' tab-like functionality Pin
span23711-May-10 21:32
span23711-May-10 21:32 
GeneralRe: 'Deck of cards' tab-like functionality Pin
span23712-May-10 14:18
span23712-May-10 14:18 
QuestionDatagrid view checkboxx Pin
eraser95010-May-10 5:19
eraser95010-May-10 5:19 
AnswerRe: Datagrid view checkboxx Pin
Abhinav S10-May-10 21:18
Abhinav S10-May-10 21:18 
GeneralRe: Datagrid view checkboxx Pin
jaypatel51223-May-10 11:20
jaypatel51223-May-10 11:20 
AnswerRe: Datagrid view checkboxx Pin
Peace ON11-May-10 2:34
Peace ON11-May-10 2:34 
QuestionRegex Question Pin
Alan Burkhart6-May-10 2:13
Alan Burkhart6-May-10 2:13 
AnswerRe: Regex Question Pin
Alan Burkhart6-May-10 3:39
Alan Burkhart6-May-10 3:39 
Questionlong sms sending using c# Pin
eraser9505-May-10 19:42
eraser9505-May-10 19:42 
AnswerRe: long sms sending using c# Pin
Dave Kreskowiak6-May-10 1:45
mveDave Kreskowiak6-May-10 1:45 

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.