Click here to Skip to main content
15,890,557 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionHow to apply validator for nested datagrid [modified] Pin
swapnilbhavsar30-Mar-07 1:26
swapnilbhavsar30-Mar-07 1:26 
QuestionHow to send information from popup window??? Pin
ha_haseebahmad30-Mar-07 1:18
ha_haseebahmad30-Mar-07 1:18 
AnswerRe: How to send information from popup window??? Pin
enjoycrack30-Mar-07 15:12
enjoycrack30-Mar-07 15:12 
GeneralRe: How to send information from popup window??? Pin
ha_haseebahmad30-Mar-07 18:14
ha_haseebahmad30-Mar-07 18:14 
GeneralRe: How to send information from popup window??? Pin
enjoycrack30-Mar-07 18:18
enjoycrack30-Mar-07 18:18 
Question[C # Asp.Net Control in Anthem ] Pin
samshah51230-Mar-07 0:49
samshah51230-Mar-07 0:49 
AnswerRe: [C # Asp.Net Control in Anthem ] Pin
samshah5121-Apr-07 19:36
samshah5121-Apr-07 19:36 
QuestionIs it possible get column data of gridview? Pin
irkahc30-Mar-07 0:30
irkahc30-Mar-07 0:30 
In gridview I have 3columns.. DoctorId,name and VisitDate.. I am binding data from database. but during runtime I don't want to diaply doctorid.
for this I have put code in pageload event like this:

GVDoctorActivity.Columns[0].Visible = false; ok. its fine. when I am trying to get the doctorid of selected row it is showing null.. when I put Visible= True am getting the value. I have written code in GridviewSElectedrowchanged event..

<asp:GridView ID="GVDoctorActivity" runat="server" AutoGenerateColumns="False" DataKeyNames="DoctorActivityId"
DataSourceID="DoctorActivityDataSource" SkinID="GridView"
EnableViewState="False" OnSelectedIndexChanged="GVDoctorActivity_SelectedIndexChanged"
<Columns>
<asp:BoundField DataField="DoctorId" HeaderText="DoctorId" SortExpression="DoctorId" />
<asp:BoundField DataField="DoctorName" HeaderText="Doctor Name" SortExpression="DoctorName" />
<asp:BoundField DataField="VisitDate" HeaderText="Visit Date" SortExpression="VisitDate" />


protected void GVDoctorActivity_SelectedIndexChanged(object sender, EventArgs e)
{

string strCampaign;
string DoctorId;
LinkButton LbtCampaign;
int rowIndex = GVDoctorActivity.SelectedIndex;
DoctorId =Convert.ToInt32(GVDoctorActivity.SelectedRow.Cells[0].Text); // getting null here if DoctorId visible is false..
LbtCampaign = (LinkButton)(GVDoctorActivity.SelectedRow.Cells[4].FindControl("lbtnCampaign"));
strCampaign = LbtCampaign.Text;
}

help me..
Thanks.

AnswerRe: Is it possible get column data of gridview? Pin
Sun Rays30-Mar-07 1:03
Sun Rays30-Mar-07 1:03 
GeneralRe: Is it possible get column data of gridview? Pin
irkahc30-Mar-07 1:13
irkahc30-Mar-07 1:13 
AnswerRe: Is it possible get column data of gridview? Pin
Sun Rays30-Mar-07 1:20
Sun Rays30-Mar-07 1:20 
GeneralRe: Is it possible get column data of gridview? Pin
irkahc30-Mar-07 1:47
irkahc30-Mar-07 1:47 
GeneralRe: Is it possible get column data of gridview? Pin
irkahc30-Mar-07 2:56
irkahc30-Mar-07 2:56 
Questionasp.net with excel and oracle Pin
chitra8130-Mar-07 0:14
chitra8130-Mar-07 0:14 
Questioncant send email with link to CSS file Pin
iuliuz29-Mar-07 23:50
iuliuz29-Mar-07 23:50 
AnswerRe: How to Identify which dataitem has been clicked in a Gridview? Pin
gauthee29-Mar-07 23:20
gauthee29-Mar-07 23:20 
AnswerSame post this many times ?? Pin
Sun Rays29-Mar-07 23:10
Sun Rays29-Mar-07 23:10 
QuestionCalendar Control Problem Pin
rachitdamani29-Mar-07 23:04
rachitdamani29-Mar-07 23:04 
QuestionHow to Identify which dataitem has been clicked? Pin
irkahc29-Mar-07 22:59
irkahc29-Mar-07 22:59 
AnswerRe: How to Identify which dataitem has been clicked? Pin
Sun Rays29-Mar-07 23:07
Sun Rays29-Mar-07 23:07 
GeneralRe: How to Identify which dataitem has been clicked? Pin
irkahc29-Mar-07 23:14
irkahc29-Mar-07 23:14 
GeneralRe: How to Identify which dataitem has been clicked? Pin
irkahc29-Mar-07 23:34
irkahc29-Mar-07 23:34 
GeneralRe: How to Identify which dataitem has been clicked? Pin
Sun Rays29-Mar-07 23:55
Sun Rays29-Mar-07 23:55 
GeneralRe: How to Identify which dataitem has been clicked? Pin
irkahc30-Mar-07 0:17
irkahc30-Mar-07 0:17 
GeneralRe: How to Identify which dataitem has been clicked? Pin
irkahc30-Mar-07 0:52
irkahc30-Mar-07 0:52 

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.