Click here to Skip to main content
15,897,518 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: Gridview Column width Pin
nikhil12346-May-07 20:20
nikhil12346-May-07 20:20 
GeneralRe: Gridview Column width Pin
rujuc#6-May-07 20:51
rujuc#6-May-07 20:51 
GeneralRe: Gridview Column width Pin
Jaiprakash M Bankolli6-May-07 22:37
Jaiprakash M Bankolli6-May-07 22:37 
QuestionSerial No Pin
Mkanchha6-May-07 19:47
Mkanchha6-May-07 19:47 
AnswerRe: Serial No Pin
rujuc#6-May-07 21:01
rujuc#6-May-07 21:01 
GeneralRe: Serial No Pin
Mkanchha6-May-07 22:58
Mkanchha6-May-07 22:58 
GeneralRe: Serial No Pin
Mkanchha6-May-07 23:02
Mkanchha6-May-07 23:02 
AnswerRe: Serial No Pin
meeram3957-May-07 0:04
meeram3957-May-07 0:04 
Hi,

There is an event for the datagrid called ItemDataBound. Suppose your datagrid name is dgrd1. Write the following code under that event.

public void dgrd1_ItemDataBound(object sender, System.Web.UI.WebControls.DataGridItemEventArgs e)
{
if(e.Item.ItemType != ListItemType.Header && e.Item.ItemType != ListItemType.Footer)
{
e.Item.Cells[0].Text=Convert.ToString(e.Item.DataSetIndex + 1);
}
}

Meeram395

GeneralRe: Serial No Pin
Mkanchha7-May-07 0:30
Mkanchha7-May-07 0:30 
GeneralRe: Serial No Pin
rohit kakria8-Apr-13 5:08
rohit kakria8-Apr-13 5:08 
QuestionQuick Test Professional (Testing Tool ) Pin
jayarajmrj6-May-07 19:46
jayarajmrj6-May-07 19:46 
QuestionValidation Problem Pin
bhavu patel6-May-07 19:40
bhavu patel6-May-07 19:40 
AnswerRe: Validation Problem Pin
Christian Graus6-May-07 19:42
protectorChristian Graus6-May-07 19:42 
AnswerRe: Validation Problem Pin
Sandeep Akhare6-May-07 19:50
Sandeep Akhare6-May-07 19:50 
AnswerRe: Validation Problem Pin
Jaiprakash M Bankolli6-May-07 22:40
Jaiprakash M Bankolli6-May-07 22:40 
QuestionProblem To Use Convert.ToDateTime() Pin
bhavu patel6-May-07 19:37
bhavu patel6-May-07 19:37 
AnswerRe: Problem To Use Convert.ToDateTime() Pin
Christian Graus6-May-07 19:42
protectorChristian Graus6-May-07 19:42 
AnswerRe: Problem To Use Convert.ToDateTime() Pin
Guffa6-May-07 22:09
Guffa6-May-07 22:09 
AnswerRe: Problem To Use Convert.ToDateTime() Pin
Jaiprakash M Bankolli6-May-07 22:50
Jaiprakash M Bankolli6-May-07 22:50 
QuestionGet Content of another website Pin
alimohammed6-May-07 19:29
alimohammed6-May-07 19:29 
AnswerRe: Get Content of another website Pin
Sandeep Akhare6-May-07 19:41
Sandeep Akhare6-May-07 19:41 
GeneralRe: Get Content of another website Pin
alimohammed7-May-07 2:34
alimohammed7-May-07 2:34 
QuestionCheck Domain Pin
AnhTin6-May-07 17:37
AnhTin6-May-07 17:37 
Questiondoes asp.net also uses classes? Pin
moomoooomoo6-May-07 17:30
moomoooomoo6-May-07 17:30 
AnswerRe: does asp.net also uses classes? Pin
N a v a n e e t h6-May-07 17:47
N a v a n e e t h6-May-07 17:47 

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.