bind empty rows in data grid
bind empty rows in data grid
bind empty rows in data grid
bind empty rows in data grid
bind empty rows in data grid
bind empty rows in data grid bind empty rows in data grid bind empty rows in data grid bind empty rows in data grid bind empty rows in data grid bind empty rows in data grid bind empty rows in data grid bind empty rows in data grid
bind empty rows in data grid bind empty rows in data grid
bind empty rows in data grid
Go Back  Xtreme Visual Basic Talk > > > bind empty rows in data grid


Reply
 
Thread Tools Display Modes
  #1  
Old 12-23-2007, 09:33 PM
aarumugavel_m aarumugavel_m is offline
Newcomer
 
Join Date: Nov 2007
Posts: 19
Default bind empty rows in data grid


hi all,


i am new in asp.net. now i am designing the screen in asp.net
i want know how to bind the empty rows in datagrid. first rows is header of the datagrid, then next 3 rows are display empty. how?

slno materail quantity





Thanks in Advance
Arumugavel M
Reply With Quote
  #2  
Old 12-23-2007, 09:35 PM
aarumugavel_m aarumugavel_m is offline
Newcomer
 
Join Date: Nov 2007
Posts: 19
Default

hi all,


i am new in asp.net. now i am designing the screen in asp.net
i want know how to bind the empty rows in datagrid. first rows is header of the datagrid, then next 3 rows are display empty. how?

slno materail quantity




code behind in C#
Thanks in Advance
Arumugavel M
Reply With Quote
  #3  
Old 12-24-2007, 02:14 AM
aarumugavel_m aarumugavel_m is offline
Newcomer
 
Join Date: Nov 2007
Posts: 19
Default

hi,

private void initializeTable()
{
DataTable dtMember;
DataRow Dr;
dtMember = new DataTable("VistorSubTable");
dtMember.Columns.Add("VI_SNO");
dtMember.Columns.Add("VI_MD");
dtMember.Columns.Add("VI_QU");

dtMember.Rows.Add("1"," "," ");
dtMember.Rows.Add("2", " ", " ");
dtMember.Rows.Add("3", " ", " ");
dtMember.Rows.Add("4", " ", " ");
dtMember.Rows.Add("5", " ", " ");


dgtraincat.DataSource = dtMember;
dgtraincat.DataBind();
}




protected void Page_Load(object sender, System.EventArgs e)
{
initializeTable();
}
Reply With Quote
  #4  
Old 12-26-2007, 10:14 AM
wayneph's Avatar
waynephbind empty rows in data grid wayneph is offline
Web Junkie

Retired Moderator
* Expert *
 
Join Date: Apr 2004
Location: D/FW, Texas, USA
Posts: 8,393
Default

can you tell us what it is doing, or isn't doing? it's hard for us to know the exact nature of the problem with the limited details given. either that or i'm just missingit.
__________________
-- wayne, MSSM Retired
> SELECT * FROM users WHERE clue > 0
0 rows returned
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Advertisement:





Free Publications
The ASP.NET 2.0 Anthology
101 Essential Tips, Tricks & Hacks - Free 156 Page Preview. Learn the most practical features and best approaches for ASP.NET.
subscribe
Programmers Heaven C# School Book -Free 338 Page eBook
The Programmers Heaven C# School book covers the .NET framework and the C# language.
subscribe
Build Your Own ASP.NET 3.5 Web Site Using C# & VB, 3rd Edition - Free 219 Page Preview!
This comprehensive step-by-step guide will help get your database-driven ASP.NET web site up and running in no time..
subscribe
bind empty rows in data grid
bind empty rows in data grid
bind empty rows in data grid bind empty rows in data grid
bind empty rows in data grid
bind empty rows in data grid
bind empty rows in data grid bind empty rows in data grid bind empty rows in data grid bind empty rows in data grid bind empty rows in data grid bind empty rows in data grid bind empty rows in data grid
bind empty rows in data grid
bind empty rows in data grid
 
bind empty rows in data grid
bind empty rows in data grid
 
-->