Click here to Skip to main content
15,901,284 members
Home / Discussions / C#
   

C#

 
GeneralRich Text Box printing Pin
Taneth6-Jul-05 3:11
professionalTaneth6-Jul-05 3:11 
GeneralRe: Rich Text Box printing Pin
Dave Kreskowiak6-Jul-05 4:00
mveDave Kreskowiak6-Jul-05 4:00 
GeneralRe: Rich Text Box printing Pin
Taneth6-Jul-05 17:26
professionalTaneth6-Jul-05 17:26 
GeneralPropertygrid Pin
Piovra_6-Jul-05 3:00
Piovra_6-Jul-05 3:00 
GeneralRe: Propertygrid Pin
LongRange.Shooter6-Jul-05 9:42
LongRange.Shooter6-Jul-05 9:42 
GeneralDataTable............. Pin
just4ulove76-Jul-05 2:45
just4ulove76-Jul-05 2:45 
GeneralRe: DataTable............. Pin
MoustafaS6-Jul-05 3:21
MoustafaS6-Jul-05 3:21 
GeneralRe: DataTable............. Pin
just4ulove76-Jul-05 3:36
just4ulove76-Jul-05 3:36 
hi...
Thx for the reply.

I defined DataTable object at class level.
then I put the below code in form-load
dt=new DataTable();
DataColumn dc= dt.Columns.Add("RequirementId");
DataColumn dc1= dt.Columns.Add("RequirementName");
dgRequirements.DataSource = new DataView(dt); /// datasource to grid

dgRequirements.DataBind();
ViewState["dt"]=dt;

And the Following code at link-click
dt=(DataTable)ViewState["dt"];
DataRow row=dt.NewRow();
row["RequirementId"] = r.RequirementId;
row["RequirementName"] = r.Description;
dt.Rows.Add(row);
ViewState["dt"]=dt;

But its not adding any row in the Datagrid...Whats wrong in the above code?

Thanks a lot.
GeneralRe: DataTable............. Pin
MoustafaS6-Jul-05 4:47
MoustafaS6-Jul-05 4:47 
GeneralRe: DataTable............. Pin
just4ulove76-Jul-05 4:55
just4ulove76-Jul-05 4:55 
QuestionHow to do this kind of Validation? Pin
just4ulove76-Jul-05 2:40
just4ulove76-Jul-05 2:40 
GeneralSelect all check box in column header Pin
nlecren6-Jul-05 2:33
nlecren6-Jul-05 2:33 
GeneralRichTextBox and rtf header/footer Pin
mr_seus6-Jul-05 2:09
mr_seus6-Jul-05 2:09 
GeneralRe: RichTextBox and rtf header/footer Pin
Dave Kreskowiak6-Jul-05 3:53
mveDave Kreskowiak6-Jul-05 3:53 
GeneralRe: RichTextBox and rtf header/footer Pin
mr_seus6-Jul-05 4:16
mr_seus6-Jul-05 4:16 
GeneralRe: RichTextBox and rtf header/footer Pin
Dave Kreskowiak6-Jul-05 5:22
mveDave Kreskowiak6-Jul-05 5:22 
GeneralApplication.Run question Pin
1nsp1r3d6-Jul-05 0:11
1nsp1r3d6-Jul-05 0:11 
GeneralRe: Application.Run question Pin
MoustafaS6-Jul-05 3:27
MoustafaS6-Jul-05 3:27 
GeneralRe: Application.Run question Pin
Dave Kreskowiak6-Jul-05 3:47
mveDave Kreskowiak6-Jul-05 3:47 
GeneralRe: Application.Run question Pin
occcy6-Jul-05 3:36
occcy6-Jul-05 3:36 
GeneralRe: Application.Run question Pin
Dave Kreskowiak6-Jul-05 3:39
mveDave Kreskowiak6-Jul-05 3:39 
GeneralRe: Application.Run question Pin
Paul Voicu6-Jul-05 4:00
Paul Voicu6-Jul-05 4:00 
GeneralDBase Pin
Rassul Yunussov6-Jul-05 0:04
Rassul Yunussov6-Jul-05 0:04 
GeneralRe: DBase Pin
just4ulove76-Jul-05 3:40
just4ulove76-Jul-05 3:40 
GeneralRe: DBase Pin
Rassul Yunussov6-Jul-05 8:51
Rassul Yunussov6-Jul-05 8:51 

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.