Click here to Skip to main content
16,006,341 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: Returning the highlighted row Pin
AlexeiXX329-Apr-09 6:35
AlexeiXX329-Apr-09 6:35 
GeneralRe: Returning the highlighted row Pin
dptalt29-Apr-09 6:56
dptalt29-Apr-09 6:56 
GeneralRe: Returning the highlighted row Pin
AlexeiXX329-Apr-09 6:59
AlexeiXX329-Apr-09 6:59 
QuestionLogin code Pin
Gjm29-Apr-09 3:29
Gjm29-Apr-09 3:29 
AnswerRe: Login code Pin
Abhijit Jana29-Apr-09 3:42
professionalAbhijit Jana29-Apr-09 3:42 
AnswerRe: Login code Pin
MidwestLimey29-Apr-09 5:35
professionalMidwestLimey29-Apr-09 5:35 
AnswerRe: Login code Pin
AlexeiXX329-Apr-09 6:39
AlexeiXX329-Apr-09 6:39 
QuestionGrid View Problem Pin
Amit Patel198529-Apr-09 3:20
Amit Patel198529-Apr-09 3:20 
I have created One dynamically

Such as

Doctor 00.00 00.15 00.30 00.45 1.00 1.15 1.30 1.45 2.00 .....till 11.45


A medium critical medium medium medium low High


This is coming when the page loads...


now I have 2 drop down boxes using that user can select time which he wants to display..

Suppose user select between 1 to 2 Then last 4 column should come,

For this i m using this function



private void loadDynamicGrid(Int32 startTime , Int32 endTime)
{

// #region Code for preparing the DataTable

//Create an instance of DataTable

//Create an ID column for adding to the Datatable

dt = new DataTable();

DataColumn dcol = new DataColumn(ID, typeof(System.Int32));

dcol.AutoIncrement = true;

dt.Columns.Add(dcol);

DataRow drow = null;
drow = dt.NewRow();

//Add the row to the datatable.

dt.Rows.Add(drow);



foreach (DataColumn col in dt.Columns)
{

//Declare the bound field and allocate memory for the bound field.

//for (Int32 index = 0; index <= 95; index++)
//{

// BoundField bfield = new BoundField();
// Int32 var = index / 4;
// if (index % 4 == 0)
// {
// if (index < 40)
// {
// bfield.HeaderText = (index / 4) + ":00";
// }
// else
// {
// bfield.HeaderText = (index / 4) + ":00";
// }
// }
// else
// {
// bfield.HeaderText = var + ":" + ((index % 4) * 15);
// }

// //Add the newly created bound field to the GridView.

// GrdDynamic.Columns.Add(bfield);
//}


for (Int32 index = startTime; index < endTime; index++)
{
Int32 hour = index;

for (Int32 minute = 0; minute <= 3; minute++)
{
BoundField bfield = new BoundField();
bfield.HeaderText = ((hour.ToString()) +":"+ (15 * minute));
GrdDynamic.Columns.Add(bfield);
}

}
}

//Initialize the DataSource

GrdDynamic.DataSource = dt;

//Bind the datatable with the GridView.

GrdDynamic.DataBind();
}
during page load i am passing calling loadDynamicGrid(0, 24)
and on dropdown_selectIndexChange()I m calling loadDynamicGrid( 1,2)

But this is adding at the end of grid not removing other column..

How to solve this problem


but this
QuestionAsp FileUpload Control Doesn't work with Ajax (C# help plz) Pin
Kazi Islam29-Apr-09 2:18
Kazi Islam29-Apr-09 2:18 
AnswerRe: Asp FileUpload Control Doesn't work with Ajax (C# help plz) Pin
dotnetmember29-Apr-09 18:40
dotnetmember29-Apr-09 18:40 
QuestionGrid View Problem Pin
Amit Patel198529-Apr-09 1:47
Amit Patel198529-Apr-09 1:47 
AnswerRe: Grid View Problem Pin
MidwestLimey29-Apr-09 5:31
professionalMidwestLimey29-Apr-09 5:31 
QuestionNot sending Email Pin
D.K.C29-Apr-09 1:29
D.K.C29-Apr-09 1:29 
AnswerRe: Not sending Email Pin
N a v a n e e t h29-Apr-09 2:29
N a v a n e e t h29-Apr-09 2:29 
GeneralRe: Not sending Email Pin
D.K.C1-May-09 2:27
D.K.C1-May-09 2:27 
AnswerRe: Not sending Email Pin
Goalie3529-Apr-09 8:54
Goalie3529-Apr-09 8:54 
QuestionProblems with SMTPMail attachments Pin
ddepauli29-Apr-09 1:19
ddepauli29-Apr-09 1:19 
AnswerRe: Problems with SMTPMail attachments Pin
Abhijit Jana29-Apr-09 1:22
professionalAbhijit Jana29-Apr-09 1:22 
GeneralRe: Problems with SMTPMail attachments Pin
ddepauli29-Apr-09 1:29
ddepauli29-Apr-09 1:29 
QuestionRe: Problems with SMTPMail attachments Pin
Vasudevan Deepak Kumar29-Apr-09 1:29
Vasudevan Deepak Kumar29-Apr-09 1:29 
QuestionHow to build a caluclator using asp.net web application Pin
Anjani Poornima29-Apr-09 1:11
Anjani Poornima29-Apr-09 1:11 
AnswerRe: How to build a caluclator using asp.net web application Pin
Vasudevan Deepak Kumar29-Apr-09 1:28
Vasudevan Deepak Kumar29-Apr-09 1:28 
QuestionValidate the sum of textbox Pin
Girish48129-Apr-09 0:43
Girish48129-Apr-09 0:43 
AnswerRe: Validate the sum of textbox Pin
J a a n s29-Apr-09 0:53
professionalJ a a n s29-Apr-09 0:53 
GeneralRe: Validate the sum of textbox Pin
Girish48129-Apr-09 1:00
Girish48129-Apr-09 1:00 

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.