Click here to Skip to main content
15,885,365 members
Home / Discussions / C#
   

C#

 
AnswerRe: One solution, few projects and one exe without dlls Pin
Abhishek Sur6-Sep-09 11:08
professionalAbhishek Sur6-Sep-09 11:08 
GeneralRe: One solution, few projects and one exe without dlls Pin
Mycroft Holmes6-Sep-09 16:57
professionalMycroft Holmes6-Sep-09 16:57 
GeneralRe: One solution, few projects and one exe without dlls Pin
Christian Graus6-Sep-09 17:05
protectorChristian Graus6-Sep-09 17:05 
Questioncontrolling the mouse programatically. Pin
asizo6-Sep-09 6:55
asizo6-Sep-09 6:55 
AnswerRe: controlling the mouse programatically. Pin
Wamuti6-Sep-09 7:53
Wamuti6-Sep-09 7:53 
Questioncreate & delete dynamic rows which containa textboxes & buttons on clicking dynamicaly generated buttuns. Pin
ambiguity_solver6-Sep-09 6:40
ambiguity_solver6-Sep-09 6:40 
AnswerRe: create & delete dynamic rows which containa textboxes & buttons on clicking dynamicaly generated buttuns. Pin
Christian Graus6-Sep-09 12:44
protectorChristian Graus6-Sep-09 12:44 
GeneralRe: create & delete dynamic rows which containa textboxes & buttons on clicking dynamicaly generated buttuns. Pin
ambiguity_solver7-Sep-09 19:15
ambiguity_solver7-Sep-09 19:15 
I have tried the following code....

private void GenerateTable1()
{
Table table = new Table();

table.ID = "Table1";
Page.Form.Controls.Add(table);

const int colsCount = 6;



TableRow row = new TableRow();

for (int j = 0; j < colsCount; j++)
{

TableCell cell = new TableCell();
if (j == 0 || j == 2)
{
Label lbl = new Label();
//lbl.ID = "LabelRow_" + 0 + "Col_" + j;
if (j == 0)
{
lbl.Text = "Acc No";
}
else
{
lbl.Text = "Vol";
}
cell.Controls.Add(lbl);
row.Cells.Add(cell);

}

else if (j == 1 || j == 3)
{
TextBox tb = new TextBox();
//tb.ID = "TextBoxRow_" + i + "Col_" + j;
cell.Controls.Add(tb);
row.Cells.Add(cell);

}
else if (j == 4)
{
Button btn = new Button();
btn.Text = "Add";
//btn.Attributes.Add("onclick", "MyFunction()");

cell.Controls.Add(btn);
row.Cells.Add(cell);
//btn.Attributes.Add("onclick", "this.visible = 'false'");
//btn.Click += new EventHandler(this.Button1_Click1);

}

else
{
Button btn = new Button();
//btn.ID = "ButtonRow_" + i + "Col_" + j;
btn.Text = "Remov";

cell.Controls.Add(btn);
row.Cells.Add(cell);
}



}
table.Rows.Add(row);



}


=====================================================================

now I want that the dynamicaly created button ADD should add next row of same kind and dynamicaly created button REMOV should delete perticular row..

plz help me...
QuestionBits and Bitmask - how to write? Pin
Daniel Leykauf6-Sep-09 6:30
Daniel Leykauf6-Sep-09 6:30 
AnswerRe: Bits and Bitmask - how to write? Pin
harold aptroot6-Sep-09 7:14
harold aptroot6-Sep-09 7:14 
GeneralRe: Bits and Bitmask - how to write? Pin
Daniel Leykauf6-Sep-09 9:29
Daniel Leykauf6-Sep-09 9:29 
GeneralRe: Bits and Bitmask - how to write? Pin
harold aptroot6-Sep-09 9:53
harold aptroot6-Sep-09 9:53 
GeneralRe: Bits and Bitmask - how to write? [modified] Pin
Daniel Leykauf6-Sep-09 10:19
Daniel Leykauf6-Sep-09 10:19 
AnswerRe: Bits and Bitmask - how to write? Pin
Luc Pattyn6-Sep-09 7:16
sitebuilderLuc Pattyn6-Sep-09 7:16 
QuestionRDLC C# Report shows only record...but datasource containts more then 100 records [modified] Pin
xodeblack6-Sep-09 5:40
xodeblack6-Sep-09 5:40 
AnswerRe: RDLC C# Report shows only record...but datasource containts more then 100 records Pin
Abhishek Sur6-Sep-09 10:59
professionalAbhishek Sur6-Sep-09 10:59 
GeneralRe: RDLC C# Report shows only record...but datasource containts more then 100 records Pin
xodeblack7-Sep-09 0:04
xodeblack7-Sep-09 0:04 
QuestionStarting a new process after process.close() Pin
Member 37222616-Sep-09 5:14
Member 37222616-Sep-09 5:14 
AnswerRe: Starting a new process after process.close() Pin
OriginalGriff6-Sep-09 6:03
mveOriginalGriff6-Sep-09 6:03 
GeneralRe: Starting a new process after process.close() Pin
Member 37222616-Sep-09 19:15
Member 37222616-Sep-09 19:15 
GeneralRe: Starting a new process after process.close() Pin
OriginalGriff6-Sep-09 21:36
mveOriginalGriff6-Sep-09 21:36 
GeneralRe: Starting a new process after process.close() Pin
Member 37222616-Sep-09 23:24
Member 37222616-Sep-09 23:24 
GeneralRe: Starting a new process after process.close() Pin
Member 37222616-Sep-09 23:41
Member 37222616-Sep-09 23:41 
GeneralRe: Starting a new process after process.close() Pin
OriginalGriff6-Sep-09 23:52
mveOriginalGriff6-Sep-09 23:52 
GeneralRe: Starting a new process after process.close() Pin
Member 37222617-Sep-09 0:09
Member 37222617-Sep-09 0:09 

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.